返回   CHF站长论坛 > 综合讨论区 > 建站源代码交流

建站源代码交流 ASP,PHP,JSP等各种网站源代码分享与使用交流。

双至强仅二千,企商在线,最早租用商 时代冠军主机588元/2年送邮箱域名 亿恩1元帮您升级服务器! 全球最新的创意可以产品
站长轻松日赚500,日结稳定高价,QQ:705491 705492 英雄合击 热血江湖私服 传奇私服 此文字广告位招租 完美世界私服 魔域私服 传奇私服
发表新主题 回复
 
主题工具 主题评分 显示模式
旧 2008-01-23, 08:34   #1 (页面定位)
石__头
新手上路
 
注册日期: 2008-01-23
帖子: 1
石__头 是普普通通的会员
默认 让你网站下雪,超简单版本

演示在这里 http://adminbus.com/snow.html

把代码加到网页,OK
代码:
<style type="text/css">
.drop { position: absolute; width: 3; filter: flipV(), flipH(); font-size: 40; color: blue }
.STYLE2 {
font-size: 18;
font-weight: bold;
color: #00FFFF;
font-family: "宋体";
}
</style>
<script language="javascript">
snow = true;
snowsym = " * "
rainsym = " ' "
howmany = 25
if(snow){sym = snowsym; speed=1; angle=10; drops=howmany}
else{sym = rainsym; speed=50; drops=howmany; angle=6}
movex = -speed/angle; movey = speed; count = 0;

function moverain(){
for(move = 0; move < drops; move++){
xx[move]+=movex; yy[move]+=mv[move];
hmm = Math.round(Math.random()*1);
if(xx[move] < 0){xx[move] = maxx+10;}
字串3

if(yy[move] > maxy){yy[move] = 10;}
drop[move].left = xx[move]
drop[move].top = yy[move]+document.body.scrollTop;
}setTimeout('moverain()','1')}
//-->
</script>
<script language="javascript">
<!--
if (document.all){
drop = new Array(); xx = new Array(); yy = new Array(); mv = new Array()
ly = "document.all[\'"; st = "\'].style"
for(make = 0; make < drops; make++){
document.write('<div id="drop'+make+'" class=drop>'+sym+'</div>');
drop[make] = eval(ly+'drop'+make+st);
maxx = document.body.clientWidth-40
maxy = document.body.clientHeight-40
xx[make] = Math.random()*maxx;
yy[make] = -100-Math.random()*maxy;
drop[make].left = xx[make]
drop[make].top = yy[make]
mv[make] = (Math.random()*5)+speed/4;
drop[make].fontSize = (Math.random()*10)+20;
//*Change (col = 'white) to (col =YOUR COLOR)*//
if(snow){col = 'white'}else{col = 'blue'} 字串8
drop[make].color = col;
}
window.onload=moverain
}
//-->
</script>

本文来自: 站长巴士站(www.adminbus.com) 详细出处参考:http://adminbus.com/html/webbiz/3/20080123/37.html
石__头 当前离线   回复时引用此帖
旧 2008-01-23, 13:21   #2 (页面定位)
muhezi.com
 
muhezi.com 的头像
 
注册日期: 2008-01-22
住址: 四海
帖子: 230
muhezi.com 是普普通通的会员
默认

华丽,但不实用


木盒子在建中……
muhezi.com 当前离线   回复时引用此帖
旧 2008-01-26, 14:45   #3 (页面定位)
cf107
封禁用户
 
注册日期: 2008-01-18
帖子: 8
cf107 是普普通通的会员
默认

0000000000
cf107 当前离线   回复时引用此帖
回复

书签

标签

主题工具
显示模式 对此主题评分
对此主题评分:



所有时间均为北京时间。现在的时间是 18:57