uzay arkaplanı <BODY bgColor=#000000> <script language="JavaScript"> if (document.all){ L=20; H=0; W=0; R=0; E=0; MY=0; MX=0; Wd=0; Hd=0; F=new Array(); Y=new Array(); X=new Array(); S=new Array(); A=new Array(); B=new Array(); document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < L; i++) document.write('<div id="ie" style="position:absolute;top:0;left:0;width:10px;height:10px;' +'font-family:Courier New;font-size:50px;color:#ffffff">.</div>'); document.write('</div></div>'); //Initial Placement! function Set(){ for (i=0; i < L; i++){ H=window.document.body.offsetHeight; W=window.document.body.offsetWidth; A[i]=Math.round(Math.random()*H); B[i]=Math.round(Math.random()*W); S[i]=Math.random()*0.07+0.05; R=Math.round(Math.random()*3); E=Math.round(Math.random()*2500+50) if (R == 3) B[i]=-E; if (R == 2) B[i]=W+E; if (R == 1) A[i]=-E; if (R == 0) A[i]=H; F[i]=W/14; } } Set(); function Assign(){ outer.style.top=document.body.scrollTop; for (i=0; i < L; i++){ F[i]-=S[i]*35; if (F[i] < 4) F[i]=3; ie[i].style.top =Y[i]; ie[i].style.left=X[i]; ie[i].style.fontSize=F[i]; } } function fly(){ MY=window.document.body.clientHeight/2; MX=window.document.body.clientWidth/2; Wd=Math.round(Math.random()*40+5); Hd=Math.round(Math.random()*30+5); for (i=0; i < L; i++) { Y[i]=A[i]+=(MY-A[i])*(S[i]); X[i]=B[i]+=(MX-B[i])*(S[i]); if ((X[i] > MX-Wd) && (X[i] < MX+Wd) && (Y[i] > MY-Hd) && (Y[i] < MY+Hd)){ H=window.document.body.offsetHeight; W=window.document.body.offsetWidth; A[i]=Math.round(Math.random()*H); B[i]=Math.round(Math.random()*W); S[i]=Math.random()*0.05+0.05; R=Math.round(Math.random()*3); E=Math.round(Math.random()*50+50) if (R == 3) B[i]=-E; if (R == 2) B[i]=W+E; if (R == 1) A[i]=-E; if (R == 0) A[i]=H+E; } if ((X[i] < 0) || (X[i] > W) || (Y[i] < 0) || (Y[i] > H)) F[i]=W/14; } Assign(); setTimeout('fly()',20); } window.onload=fly; } </script></body></html>
havai fişek <body bgcolor="#000000"> <script language="JavaScript"> <!-- CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff') CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#fffffF') Xpos=130; Ypos=130; I='#00ff00'; C=0; S=5; H=null; W=null; Y=null; NS4=(document.layers); NS6=(document.getElementById&&!document.all); IE4=(document.all); A=14; E=120; L=null; if (NS4){ for (i=0; i < A; i++) document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>'); } if (NS6){ window.document.body.style.overflow='hidden'; for (i=0; i < A; i++) document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+I+'"></div>'); } if (IE4){ document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < A; i++) document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+I+';font-size:2px"></div>'); document.write('</div></div>'); } function Fireworks(){ H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight; W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth; Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop; for (i=0; i < A; i++){ if (IE4)L=iestars[i].style; if (NS4)L=document.layers["nsstars"+i]; if (NS6)L=document.getElementById("ns6stars"+i).style; var F=Math.floor(Math.random()*CL.length); var RS=Math.round(Math.random()*2); L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100) L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100) if (C < 110){ if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1} if (IE4||document.getElementById) {L.background=I;L.width=1;L.height=1;L.fontSize=1} } else{ if (NS4){L.bgColor=CL[F];L.clip.width=RS;L.clip.height=RS} if (IE4||document.getElementById){L.background=CL[F];L.width=RS;L.height=RS;L.fontSize=RS} } } if (C > 220){ C=0; var NC=Math.floor(Math.random()*CL2.length); I=CL2[NC]; E=Math.round(100+Math.random()*50); Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y; Xpos = E+Math.round(Math.random()*(W-(E*2.2))); } C+=S; setTimeout("Fireworks()",10); } Fireworks(); // --> </script></body></html>