<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>js实现网页雪花效果</title>
<style>
body {
padding:0;
margin:0;
background: #3B3B3B;
}
#demo {
display: block;
margin: 25px auto;
border: 1px solid #000;
}
</style>
</head>
<body>
<img id="demo" src="images/demo.jpg" alt="snowy landscape"> <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<script src="js/jsized.snow.min.js" type="text/javascript"></script>
<script>
/**
* This function takes 2 arguments
* First is the path to the directory with snowflake images
* Second is the maximum number of snowflakes, please do not
* set this number above 60 as it will impact the performance
*/
createSnow('', 60);
</script>
</body>
</html>
js实现网页雪花效果.zip
版权申诉
45 浏览量
2023-09-27
22:18:16
上传
评论
收藏 122KB ZIP 举报
码云笔记
- 粉丝: 2w+
- 资源: 5851