Javascript :Background Matrix

Post your scripts here.

<b>Note:</b>The scripts must be your own, and please read the "Important: Read before you post" thread inside this category before participating here.
Locked
asmail1
Posts: 14
Joined: Wed Mar 15, 2006 6:22 pm

Javascript :Background Matrix

Post by asmail1 »

Description : backdrop for the film, known Matrix. Method : Put installation code in the <body> THAT :

Code: Select all

<script language="JavaScript">
http://smokyhosts.com/
if (****.all){
Cols=10;
Cl=24;
Cs=100;
Ts=10;
Tc='#FF9933';
Tc1='#FFCC00';
MnS=5;
MxS=10;
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);
****.write("<div id='Container' style='position:absolute;top:0;left:-"+Cs+"'>");
****.write("<div style='position:relative'>");
for(i=0; i < Cols; i++){
S[i]=I+=Cs;
****.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>");
}
****.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.****.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.****.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();
}
// -->
</script>
**** here to watch the example
http://soft.vip600.com/java-tests/javatest21.htm


Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

work only on IE
Does not work on Firefox 1.5.0.7 !! I dont know about other browsers
I hate scripts that works only on one specific browser, mostly iE.
Image
breeze
Posts: 340
Joined: Sat Mar 18, 2006 4:49 am

Post by breeze »

It's quite good, but as Lixas says:
Lixas wrote:work only on IE
Does not work on Firefox 1.5.0.7.
It looks even better if you set bgcolor to black and the text to a green.

Good work asmail1
This is a message, a message from the all-mighty (me): You shall go here, you shall not complain: Breeze's Corner.
rwshthn
Posts: 500
Joined: Tue Sep 26, 2006 1:39 am
Contact:

its not wore

Post by rwshthn »

it didnt work man
Locked