您的位置:首页 - 教程 - JavaScript - 正文
js下雪唯美效果
今天大雪,弄一个下雪的特效。

查看效果:http://hovertree.com/texiao/js/snow.htm

效果2:http://hovertree.com/texiao/js/7.htm

效果3:http://hovertree.com/texiao/html5/5/




以下是完整源代码,保存到HTML文件也可以看效果:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>下雪了,我们去堆雪人好吗? - 何问起</title><base target="_blank" />
<link href="http://hovertree.com/texiao/js/7/hovertreesnow.css" type="text/css" rel="stylesheet"/>
<meta charset="utf-8" />
</head>
<body>
<div id="hovertreesnow">
<div class="hovertreehead"><br /><br />下雪了,我们去堆雪人好吗?
</div>
<div class="hovertreesnow">
<img id="hewenqi" src="http://hovertree.com/texiao/js/7/hovertreesnow.jpg" art="何问起雪人" />
</div>
<div class="hovertreefoot">
<audio src="http://cms.hovertree.com/hovertreesound/hovertreesnow.mp3" autoplay="autoplay" controls="controls"><br />您的浏览器不支持播放音乐。请用支持html5的浏览器打开,例如chrome或火狐或者新版IE等。<br />何问起 hovertree.com<br /></audio>
<br />
<a href="http://hovertree.com">首页</a> <a href="http://hovertree.com/hvtart/bjae/79mtsd1t.htm">原文</a> <a href="http://hovertree.com/texiao/">特效</a>
</div>
</div>
<script type="text/javascript" src="http://hovertree.com/texiao/js/7/hovertreesnow.js"></script>
</body>
</html>



评论: