A scriptet kimásolod,beilleszted és kész!
A tüzijáték színeit változtathatod!Segítség képpen megadtam néhány nyerő színt:
<P>#ff0000</P> <P>#000000</P> <P>#00ff00</P> <P>#ffffff</P> <P>#FFAAFF</P>
A tüzijáték:
<P> <TABLE class=module cellSpacing=0 cellPadding=0 width="100%" border=0><T <TR> <TBODY> <TR> <TD class=modbody colSpan=3> <P><BR><!-- Start of Fireworks --><BR> <SCRIPT language=JavaScript><BR><!-- IE4+, NS4+, NS6 Fireworks script by <A href="mailto:kurt.grigg@virgin.net">kurt.grigg@virgin.net</A><BR>CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff')<BR>CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#fffffF')<BR>Xpos=130;<BR>Ypos=130;<BR>I='#000000;<BR>C=0;<BR>S=5;<BR>H=null;<BR>W=null;<BR>Y=null;<BR>NS4=(document.layers);<BR>NS6=(document.getElementById&&!document.all);<BR>IE4=(document.all);<BR>A=14;<BR>E=120;<BR>L=null;<BR>if (NS4){<BR>for (i=0; i < A; i++)<BR>document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>');<BR>}<BR>if (NS6){<BR>window.document.body.style.overflow='hidden';<BR>for (i=0; i < A; i++)<BR>document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+I+'"></div>');<BR>}<BR>if (IE4){<BR>document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">');<BR>for (i=0; i < A; i++)<BR>document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+I+';font-size:2px"></div>');<BR>document.write('</div></div>');<BR>}<BR>function Fireworks(){<BR>H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight;<BR>W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth;<BR>Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop;<BR>for (i=0; i < A; i++){<BR>if (IE4)L=iestars[i].style;<BR>if (NS4)L=document.layers["nsstars"+i];<BR>if (NS6)L=document.getElementById("ns6stars"+i).style;<BR>var F = CL[Math.floor(Math.random()*CL.length)];<BR>var RS=Math.round(Math.random()*2);<BR>L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100)<BR>L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100)<BR>if (C < 110){<BR> if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1}<BR> if (IE4||document.getElementById)<BR> {L.background=I;L.width=1;L.height=1;L.fontSize=1}<BR> }<BR>else{<BR> if (NS4){L.bgColor=F;L.clip.width=RS;L.clip.height=RS}<BR> if (IE4||document.getElementById){L.background=F;L.width=RS;L.height=RS;L.fontSize=RS}<BR> }<BR>}<BR>if (C > 220){<BR> C=0;<BR> var NC = CL2[Math.floor(Math.random()*CL2.length)];<BR> I=NC;<BR> E=Math.round(100+Math.random()*90);<BR> Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y;<BR> Xpos = E+Math.round(Math.random()*(W-(E*2.2)));<BR>}<BR>C+=S;<BR>setTimeout("Fireworks()",10);<BR>}<BR>Fireworks();<BR>// --><BR></SCRIPT> <BR><!-- End of Fireworks --></P></TD></TR> <TR> <TD class=modbottom colSpan=3> </TD></TR></T< TABLE> <P></P></TBODY></P>