手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >jquery实现漫天雪花飞舞的圣诞祝福雪花效果代码分享
jquery实现漫天雪花飞舞的圣诞祝福雪花效果代码分享
摘要:这是一款基于jquery实现的漫天雪花飞舞的圣诞祝福雪花效果代码,雪花的大小可以进行切换,用户还可以更改背景图片,是一款非常实用的幻灯片特效...

这是一款基于jquery实现的漫天雪花飞舞的圣诞祝福雪花效果代码,雪花的大小可以进行切换,用户还可以更改背景图片,是一款非常实用的幻灯片特效源码。

漫天雪花飞舞的jquery圣诞祝福雪花效果,集中不同的效果可以点击选择,请欣赏。

效果演示 源码下载(浏览器中如果不能正常运行,可以尝试切换浏览模式或者选择直接下载)

jquery实现漫天雪花飞舞的圣诞祝福雪花效果代码分享1

为大家分享的漫天雪花飞舞的jquery圣诞祝福雪花效果代码如下

<!DOCTYPE html> <html> <head> <script type="text/javascript" src="images/jquery-latest.min.js"></script> <script src='images/snowfall.jquery.js'></script> <link rel="stylesheet" href="images/styles.css"></link> </head> <body> <input type="button" id="clear" value="Click to clear"/> <input type="button" id="round" value="Rounded"/> <input type="button" id="shadows" value="Shadows"/> <input type="button" id="roundshadows" value="Rounded Shadows"/> <input type="button" id="deviceorientation" value="Deviceorientation"/> <div> <p>Collect on meeeeee!!!</p> </div> <div> <p>Collect on meeeeee!!!</p> </div> <div> <p>Collect on meeeeee!!!</p> </div> </body> <script type='text/javascript'> $(document).ready(function(){ $('.collectonme').hide(); //Start the snow default options you can also make it snow in certain elements, etc. $(document).snowfall(); $("#clear").click(function(){ $(document).snowfall('clear'); // How you clear }); $("#round").click(function(){ document.body.className = "darkBg"; $('.collectonme').hide(); $(document).snowfall('clear'); $(document).snowfall({round : true, minSize: 5, maxSize:8}); // add rounded }); $("#shadows").click(function(){ document.body.className = "lightBg"; $('.collectonme').hide(); $(document).snowfall('clear'); $(document).snowfall({shadow : true, flakeCount:200}); // add shadows }); $("#roundshadows").click(function(){ document.body.className = "lightBg"; $('.collectonme').hide(); $(document).snowfall('clear'); $(document).snowfall({shadow : true, round : true, minSize: 5, maxSize:8}); // add shadows }); $("#deviceorientation").click(function(){ $(document).snowfall('clear'); $('.collectonme').hide(); document.body.className = "darkBg"; $(document).snowfall({deviceorientation : true, round : true, minSize: 5, maxSize:8}); }); }); </script> <p align="center"><font color="#FFFFFF">来源:</font><a href="http://www.jb51.net/" target="_blank"><font color="#FFFFFF">查字典教程网</font></a></p> </html>

以上就是为大家分享的漫天雪花飞舞的jquery圣诞祝福雪花效果代码,希望大家可以喜欢。

【jquery实现漫天雪花飞舞的圣诞祝福雪花效果代码分享】相关文章:

javascript实现控制的多级下拉菜单

javascript实现炫酷的拖动分页

Javascript实现div的toggle效果实例分析

js实现带按钮的上下滚动效果

jquery读取xml文件实现省市县三级联动的方法

jQuery实现div随意拖动的实例代码(通用代码)

jQuery实现的多屏图像图层切换效果实例

js实现顶部可折叠的菜单工具栏效果实例

基于jQuery实现的无刷新表格分页实例

JavaScript实现带标题的图片轮播特效

精品推荐
分类导航