Español
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com --> <!--要完成此效果把如下代码加入到<cuerpo>区域中--> <script language="JavaScript"> <!-- if (document.all){ Cols=72; Cl=24; Cs=10; Ts=10; Tc='#008800'; Tc1='#00ff00'; MnS=20; MxS=30; I=C; Sp=nueva matriz();S=nueva matriz();Y=nueva matriz(); C=nueva matriz();M=nueva matriz();B=nueva matriz(); RC=nueva matriz();E=nueva matriz();Tcc=nueva matriz(0,1); document.write("<div id='Contenedor' 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]+"; ancho:"+Ts+"px;alto:0px;color:"+Tc+";visibilidad: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]; } } función Ciclo(){ 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)]=' '+' '; M[i]=B[0]+=C[i3]; Y[i]=-Ts*M[i].longitud/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('Ciclo()',20) } Ciclo(); } // --> </script>