<SCRIPT language=JavaScript>
if (document.all){
Cols=4;
Cl=20;
Cs=15;
Ts=14;
Tc='#008800';
Tc1='#00ff00';
MnS=6;
MxS=6;
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,0);
document.write("<div id='Container' style='position:absolute;top:0;right:-"+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:comic sans ms;font-size:"
+Ts+"px;right:"+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)]=' '+' ';
M[i]=B[0]+=C[i3];
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()',20)
}
Cycle();
}
<!--Fin du Script-->
</SCRIPT>
if (document.all){ }
Container.style.top=window.document.body.scrollTop;
A[i].style.top=Y[i];
Container.style.top=window.document.body.scrollTop+'px';
A[i].style.top=Y[i]+'px';
var Cols=4; var Cl=20; var Cs=15; var Ts=14; var Tc='#008800'; var Tc1='#00ff00'; var MnS=6; var MxS=6; var I=Cs; var Sp=new Array(); var S=new Array(); var Y=new Array(); var C=new Array(); var M=new Array(); var B=new Array(); var RC=new Array(); var E=new Array(); var Tcc=new Array(0,0); document.write("<div id='Container' style='position:absolute;top:0;right:-"+Cs+"'>"); document.write("<div style='position:relative'>"); for(i=0; i < Cols; i++){ S[i]=I+=Cs; document.write("<div id='A_"+i+"' style='position:absolute;top:0;font-family:comic sans ms;font-size:" +Ts+"px;right:"+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(){ var Container=document.getElementById('Container'); 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]; var A=document.getElementById('A_'+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].length/1.5; A.style.visibility='visible'; } Sp[i]=Math.round(MnS+Math.random()*MxS); } } A.style.top=Y[i]+'px'; A.innerHTML=M[i]+' '+E[i]+' '; } setTimeout('Cycle()',20) } Cycle();
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <script language=JavaScript> Cols=4; Cl=20; Cs=20; Ts=14; Tc='#008800'; Tc1='#00ff00'; MnS=6; MxS=6; 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,0); var elem=document.createElement('div'); elem.id='Container' elem.setAttribute('style','position:absolute;width:30px;top:0px;right:-'+Cs+'px') var elem2=document.createElement('div'); elem2.setAttribute('style','position:relative') elem.appendChild(elem2); for(i=0; i < Cols; i++){ S[i]=I+=Cs; var elem3=document.createElement('div'); elem3.id='A'+i elem3.setAttribute('style',"position:absolute;top:0px;font-family:comic sans ms;font-size:"+Ts+"px;right:"+S[i]+"px;width:"+Ts+"px;height:0px;color:"+Tc+";visibility:hidden") elem2.appendChild(elem3); } document.body.appendChild(elem); 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+'px'; 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].length/1.5; document.getElementById('A'+i).style.visibility='visible'; } Sp[i]=Math.round(MnS+Math.random()*MxS); } } document.getElementById('A'+i).style.top=Y[i]+'px'; document.getElementById('A'+i).innerHTML=M[i]+' '+E[i]+' '; } setTimeout('Cycle()',20) } Cycle(); <!--Fin du Script--> </script> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> </body> </html>