欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jquery實(shí)現(xiàn)漫天雪花飛舞的圣誕祝福雪花效果代碼分享

 更新時(shí)間:2015年08月20日 11:49:13   投稿:lijiao  
這篇文章主要介紹了jquery實(shí)現(xiàn)漫天雪花飛舞的圣誕祝福雪花效果,很浪漫,感興趣的小伙伴們可以參考一下

這是一款基于jquery實(shí)現(xiàn)的漫天雪花飛舞的圣誕祝福雪花效果代碼,雪花的大小可以進(jìn)行切換,用戶還可以更改背景圖片,是一款非常實(shí)用的幻燈片特效源碼。

漫天雪花飛舞的jquery圣誕祝福雪花效果,集中不同的效果可以點(diǎn)擊選擇,請(qǐng)欣賞。

效果演示 源碼下載(瀏覽器中如果不能正常運(yùn)行,可以嘗試切換瀏覽模式或者選擇直接下載)

 

 為大家分享的漫天雪花飛舞的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 class="darkBg">
 <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 class="collectonme">
 <p>Collect on meeeeee!!!</p>
 </div>
 <div class="collectonme">
 <p>Collect on meeeeee!!!</p>
 </div>
 <div class="collectonme">
 <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.dbjr.com.cn/" target="_blank"><font color="#FFFFFF">腳本之家</font></a></p>
</html>

以上就是為大家分享的漫天雪花飛舞的jquery圣誕祝福雪花效果代碼,希望大家可以喜歡。

相關(guān)文章

最新評(píng)論