今天就给大家分享一下js代码!让你们的网站或者网页,可以拥有落叶的效果!
把以下的代码放到你网站的头部即可:
<!--落叶效果:--> <script src="https://www.mishi23.com/js/su.js"></script> <script type="text/javascript"> jQuery(document).ready(function($) { $('body').wpSuperSnow({ flakes: ['https://www.mishi23.com/img/007.png', 'https://www.mishi23.com/img/006.png', 'https://www.mishi23.com/img/004.png', 'https://www.mishi23.com/img/005.png', 'https://www.mishi23.com/img/001.png', 'https://www.mishi23.com/img/003.png', 'https://www.mishi23.com/img/002.png', 'https://www.mishi23.com/img/008.png', 'https://www.mishi23.com/img/009.png', 'https://www.mishi23.com/img/010.png' ], totalFlakes: '100', zIndex: '999999999', maxSize: '30', maxDuration: '50', useFlakeTrans: false }); }); </script>