|
decoy - scoot2.jpg
de 2de en best speaker voor achter inscript language="JavaScript1.2"/PPvar ns=document.layers?7:0BRvar ie4=document.all?7:0BRvar ns6=document.getElementById&&!document.all?7:0/PPamount=24;BRif (ns){BRfor (i=0; i amount; i++)BRdocument.write("LAYER NAME=''nsstars"+i+"'' LEFT=0 TOP=0 BGCOLOR=''#FFFFF0'' CLIP=''0,0,1,1''/LAYER");BR}BRelse if (ie4||ns6){BRdocument.write("div id=''ieCov'' style=''position:absolute;top:0px;left:0px''");BRdocument.write("div style=''position:relative''");BRfor (i=0; i amount; i++)BRdocument.write("div id=''iestars"+i+"'' style=''position:absolute;top:0px;left:0px;width:1;height:1;background:#ffffff;font-size:1;z-index:10''/div");BRdocument.write("/div/div");BR}BRClrs=new Array(''ff0000'',''00ff00'',''ffffff'',''ff00ff'',''ffa500'',''ffff00'',''00ff00'',''ffffff'',''ff00ff'')BRsClrs=new Array(''ffa500'',''00ff00'',''FFAAFF'',''fff000'',''fffffF'')BRXpos=300;BRYpos=150;BRinitialStarColor=''00ff00'';BRstep=5;BRcurrStep=0;BRexplosionSize=110;BRfunction Fireworks(){BRvar WinHeight=(ns||ns6)?window.innerHeight-100:window.document.body.clientHeight-100;BRvar WinWidth=(ns||ns6)?window.innerWidth-100:window.document.body.clientWidth-100;BRvar Yscroll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;BRfor (i=0; i amount; i++){BRif (ie4||ns6)BRvar layer=ns6?document.getElementById("iestars"+i).style : eval("iestars"+i).style;BRelse if (ns)BRvar layer=document.layers["nsstars"+i]BRvar randCol=Math.round(Math.random()*8);BRvar randSz=Math.round(Math.random()*2);BRlayer.top = Ypos + explosionSize*Math.sin((currStep+i*5)/3)*Math.sin(currStep/100)BRlayer.left= Xpos + explosionSize*Math.cos((currStep+i*5)/3)*Math.sin(currStep/100)BRif (currStep 110){BR if (ns){layer.bgColor=initialStarColor;layer.clip.width=1;layer.clip.height=1}BR else{layer.background=initialStarColor;layer.width=1;layer.height=1;layer.fontSize=8}BR }BRelse{BR if (ns){layer.bgColor=Clrs[randCol];layer.clip.width=randSz;layer.clip.height=randSz}BR else{layer.background=Clrs[randCol];layer.width=randSz;layer.height=randSz;layer.fontSize=randSz}BR }BR}BRif (currStep 220) BR{BR currStep=0;BR Ypos = 50+Math.round(Math.random()*WinHeight)+Yscroll;BR Xpos = 50+Math.round(Math.random()*WinWidth);BR for (i=0; i sClrs.length; i++)BR {BR var newIcol=Math.round(Math.random()*i);BR }BRinitialStarColor=sClrs[newIcol];BRexplosionSize=Math.round(80*Math.random()+100);BR}BRcurrStep+=step;BRsetTimeout("Fireworks()",20);BR}BRFireworks();BR// --BR/script/PP/PPBR |