不知道你说的是不是这个!!
这只是一个网业特效而已- <html>
- <head>
- <title>0、1数字下落</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- </head>
- <body bgcolor=#000000>
- <!-------------------------------->
- <script language="JavaScript">
- <!--
- if (document.all){
- Cols=8;//满屏最多显示的个数
- Cl=10;//数量
- Cs=100;//间距
- Ts=30;//文字大小
- Tc=';#008800';;
- Tc1=';#00ff00';;
- MnS=5;//下落速度
- MxS=5;//下落速度
- 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("u");ue=new Array("欢<br/>迎<br/>来<br/>到<br/>黑<br/>色","海<br/>岸","线","看","嘿")
- 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]=I+=Cs;
- document.write("<div id=';A'; style=';position:absolute;top:0;font-family:Arial;font-size:"
- +Ts+"px;left:"+S[i]+";width:"+Ts+"px;height:0px;color:"+Tc+";visibility:hidden';></div>");
- }
- document.write("</div></div>");
- for(j=0; j < Cols; j++){
- RC[j]=1+Math.round(Math.random()*Cl);
- Y[j]=0;
- Sp[j]=Math.round(MnS+Math.random()*MxS);
- for(i=0; i < RC[j]; i++){
- B[i]=';';;
- C[i]=Math.round(Math.random()*1)+'; ';;
- M[j]=B[0]+=C[i];
- }
- }
- function Cycle(){
- Container.style.top=window.document.body.scrollTop;
- for (i=0; i < Cols; i++){
- var r = Math.floor(Math.random()*Tcc.length);
- E[i] = ';<font color=';+Tc1+';>';+Tcc[r]+';</font>';;
- Y[i]+=Sp[i];
- if (Y[i] > window.document.body.clientHeight){
- for(i2=0; i2 < Cols; i2++){
- RC[i2]=1+Math.round(Math.random()*Cl);
- for(i3=0; i3 < RC[i2]; i3++){
- B[i3]=';';;
- C[i3]=Math.round(Math.random()*1)+'; ';;
- C[Math.floor(Math.random()*i2)]='; ';+'; ';;
- tt=Math.floor(Math.random()*ue.length);
- tt=ue[tt]+"<br/>";
- M[i]=B[0]+=tt;
- Y[i]=-Ts*M[i].length/1.5;
- A[i].style.visibility=';visible';;
- }
- Sp[i]=Math.round(MnS+Math.random()*MxS);
- }
- }
- A[i].style.top=Y[i];
- A[i].innerHTML=M[i]+'; ';+E[i]+'; ';;
- }
- setTimeout(';Cycle()';,10)
- }
- Cycle();
- }
- // -->
- </script>
- <!---------------------------------->
- </body>
- </html>
- </body>
- </html>
复制代码 |