ybkftxz 发表于 2007-4-27 10:52:17

***文本特效***0、1数字下落 有点象闪客帝国的感觉

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
<html>
<head>
<title>0、1数字下落</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
</head>
<body   bgcolor=#000000>
<!-------------------------------->
<script language="javascript">
<!--
if (document.all){
cols=6;
cl=24;//space's are included so real length is 48!
cs=10;
ts=10;
tc='#008800';
tc1='#00ff00';
mns=20;
mxs=30;
i=cs;
sp=new array();s=new array();y=new array();
c=new array();m=new array();b=new array();
rc=new array();e=new array();tcc=new array(0,1);
document.write("<div id='container' style='position:absolute;top:0;left:-"+cs+"'>");
document.write("<div style='position:relative'>");
for(i=0; i < cols; i++){
s=i+=cs;
document.write("<div id='a' style='position:absolute;top:0;font-family:arial;font-size:"

+ts+"px;left:"+s+";width:"+ts+"px;height:0px;color:"+tc+";visibility:hidden'></div>");
}
document.write("</div></div>");

for(j=0; j < cols; j++){
rc=1+math.round(math.random()*cl);
y=0;
sp=math.round(mns+math.random()*mxs);
for(i=0; i < rc; i++){
b='';
c=math.round(math.random()*1)+' ';
m=b+=c;
}
}
function cycle(){
container.style.top=window.document.body.scrolltop;
for (i=0; i < cols; i++){
var r = math.floor(math.random()*tcc.length);
e = '<font color='+tc1+'>'+tcc+'</font>';
y+=sp;

if (y > window.document.body.clientheight){
for(i2=0; i2 < cols; i2++){
rc=1+math.round(math.random()*cl);
for(i3=0; i3 < rc; i3++){
b='';
c=math.round(math.random()*1)+' ';
c=' '+' ';
m=b+=c;
y=-ts*m.length/1.5;
a.style.visibility='visible';
}
sp=math.round(mns+math.random()*mxs);
}
}
a.style.top=y;
a.innerhtml=m+' '+e+' ';
}
settimeout('cycle()',20)
}
cycle();
}
// -->
</script>
<!---------------------------------->
</body>
</html>

      










--------------------------------------

拥有三人行论坛管理系列软件,一个人就可以管理一个论坛的更新维护。还能使您的论坛有千人在线的真实火暴效果,让您不在为论坛因没有人气而留不住会员而烦恼,使您的论坛早日成为一流的论坛。详情请登陆网站:http://www.cnsrx.cn 三人行论坛管理软件,站长必备的专业好工具。(您使用的是免费版本,购买收费版本后,将不带广告。业务QQ:247216 44985227)
页: [1]
查看完整版本: ***文本特效***0、1数字下落 有点象闪客帝国的感觉