求网页代码:如何制作漂浮物

来源:百度知道 编辑:UC知道 时间:2024/05/19 00:12:41
就是想要做出这种效果http://yingxiao052.xinwen365.net/
那种飘着的效果拉,请高手写一段代码,最好告诉我怎么加到网页里,谢谢
我如果想要把飘浮的图片改成这个http://www2.freep.cn/Photo.php?url=photo3/0702060941249162.gif
应该调整哪些数据呢?

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页上漂浮的花瓣</title>
<SCRIPT language=JavaScript>
<!-- Original: Altan (snow@altan.hr) -->
<!-- Web Site: http://www.altan.hr/snow -->
<!-- Smaller flakes, subtle snowfall variables, code beautifcation and makeSnow function by NoSLZZP -->

var no = 6; // snow number
var speed = 12; // smaller number moves the snow faster
var snowflake = "http://www.jscode.cn/Uploadfile/2006819224938886.GIF";

var ns4up = (document.layers) ? 1 : 0; // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; // coordinate and position variables
var am