<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效观止|JsCode.CN|---网页上漂浮的花瓣</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, stx, sty; // amplitude and step variables
var i, doc_width = 400, doc_height = 500;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = 500;
doc_height = 500;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ns4up) { // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
}
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
}
}
}
function snowNS() { // Netscape main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
</SCRIPT>
<SCRIPT language=javascript src="images/pf.js"></SCRIPT>
file:///e|/myweb/gif/diaozhui5.gif
没有合适的资源?快使用搜索试试~ 我知道了~
dreamweaver做的网页
共206个文件
jpg:111个
gif:81个
html:7个
4星 · 超过85%的资源 需积分: 9 246 下载量 162 浏览量
2009-06-03
13:44:39
上传
评论 11
收藏 9.54MB RAR 举报
温馨提示
初学网页dreamweaver,用了模版,框架,css样式,表格嵌套。。。。
资源推荐
资源详情
资源评论
收起资源包目录
dreamweaver做的网页 (206个子文件)
moban.dwt 20KB
4.gif 423KB
9.gif 258KB
kc.gif 238KB
tu2.gif 187KB
sd1.gif 128KB
3.gif 114KB
sd6.gif 111KB
sd5.gif 106KB
1530320.gif 98KB
121.gif 96KB
diaozhui3.gif 96KB
diaozhui4.gif 73KB
tu1.gif 69KB
sd2.gif 61KB
sd7.gif 60KB
2007101994556759.gif 60KB
diaozui0.gif 55KB
0803321.gif 52KB
sd3.gif 45KB
sd8.gif 43KB
xiaomao.gif 41KB
diaozhuiq.gif 38KB
diaozhui2.gif 36KB
2d.gif 35KB
p.gif 32KB
bj.gif 32KB
boy.gif 31KB
9d.gif 30KB
3d.gif 29KB
girl.gif 25KB
sd4.gif 24KB
6.gif 23KB
20071004_e36be916a7c6797ba212cKzlXAm3nBhj.gif 23KB
diaozhui1.gif 21KB
zi.gif 20KB
10.gif 20KB
miao.gif 20KB
10d.gif 19KB
194386.gif 18KB
195999.gif 16KB
diaozhui6.gif 14KB
q1.gif 12KB
diaozhui12.gif 10KB
13.gif 9KB
diaozhui7.gif 8KB
diaozhui13.gif 8KB
20071004_4f4a3d87e3f66ced8143urvuIwzr97MO.gif 8KB
diaozhui8.gif 8KB
2.gif 8KB
shiping.gif 8KB
diaozhui5.gif 7KB
15.gif 7KB
20071004_da336c30b8232a542fa9pSFq6EHfGXeX.gif 7KB
20071004_122872cb1b87f58feafaatmRHHPkprQp.gif 7KB
gongyi1.gif 6KB
20071004_d441646fd0694846343bnq831ztm9dht.gif 6KB
img5_5.gif 6KB
20070225114930210.gif 5KB
diaozhui11.gif 5KB
diaozhui15.gif 5KB
diaozhui10.gif 5KB
0.gif 4KB
logo.gif 4KB
20071004_696fcb03549e941552c2Lkon4Ut6l5L7.gif 3KB
diaozhui14.gif 3KB
bj6.gif 3KB
bj2.gif 2KB
img5_4.gif 2KB
bj3.gif 2KB
diaozhui9.gif 1KB
img5_2.gif 1KB
x.gif 929B
return.gif 883B
BOTTOM.GIF 560B
snow.gif 418B
diaozhui16.GIF 410B
x1.gif 262B
img5_15.gif 129B
img5_14.gif 99B
img5_13.gif 99B
img5_12.gif 99B
index.html 25KB
spdp.html 21KB
mp3.html 21KB
xfgk.html 9KB
dlwz.html 9KB
dxdm.html 9KB
zzjj.html 8KB
8.jpg 2.43MB
01.jpg 426KB
2.jpg 298KB
3.jpg 282KB
4.jpg 278KB
fense.jpg 276KB
1.jpg 256KB
10.jpg 206KB
menghuaxiyou.jpg 174KB
213_61244_3b929e2ad4b5db6.jpg 161KB
7.jpg 138KB
共 206 条
- 1
- 2
- 3
资源评论
- seaoni2011-11-14总体上还是很不错的,但是在细节上有点问题,有待提高
- liuruiwen199205172011-11-09用的东西都还很高端。。。界面不是太好,综合来说很不错了
- kai52792014-05-13用的东西都还很高端 总体上还是很不错的
- crazykuikui2011-12-28还可以,就是界面有点混乱
hylf1985
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功