官网:
http://rainbow.arch.scriptmania.com/scripts/bg/snow_fall_2.html
下载:
http://rainbow.arch.scriptmania.com/scripts/bg/snowstorm.js
代码:
<!-- SNOW TAGS START -->
<!-- Copy the <script> tag into your own page(s) for the snow effect. That is all! (No CSS etc. is needed) -->
<script type="text/javascript" src="snowstorm.js"></script>
<!-- now, we'll customize the snowStorm object -->
<script type="text/javascript">
snowStorm.flakesMaxActive = 95; // show more snow on screen at once
snowStorm.snowStick = true; // When false, snow will never sit at the bottom
snowStorm.animationInterval = 33; // 20 = fast + smooth, but 50 = more but slower
</script>
<!-- SNOW TAGS END -->
打开你的文件 snowstorm.js 是第 41 行
前:
this.zIndex = 0; // 应用于每个雪花的 CSS 堆叠顺序
后:
this.zIndex = 1000; // 应用于每个雪花的 CSS 堆叠顺序
问题body layer是看不到雪就代表0是none,所以需要改成1000才可以看body的前面显示前面有雪。
对不起英语不好
2014 年圣诞快乐和 2015 年新年快乐 ;-)