Português
<!-- Adicione o seguinte código à área <body> --> <!-- http://bbs.downcodes.com --> <!--Descrição do script: Etapa 1: Adicione o seguinte código a <head > Na área-->Clique com o mouse para ver o efeito<SCRIPT LANGUAGE="JavaScript1.2"> <!-- Begin var ver = navigator.appVersion; (ver.indexOf ("MSIE 5") > -1 && dom) ? 1 : 0; sparksOn = 1; função initMouseEvents() { document.onmousedown = mouseDown; if (n) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE } function mouseDown(e) { if (sparksOn) { var mousex = (n) ?e.pageX : event.x+document.body.scrollLeft; var mousey = (n) ? e.pageY : event.y+document.body.scrollTop; <= 9; k++) eval('SHOW("sDiv'+k+'")'); i+',0 ,'+mousex+','+mousey+')'); } } } function moveTo(i,j, mousex, mousey){ if (j < eval('anim_'+i+'_x.length') ){ var tempx = eval('anim_'+i+'_x[j]+mousex'); +30 > ( document.body.offsetHeight+document.body.scrollTop)) tempy = document.body.offsetHeight+document.body.scrollTop-30; if(tempx+30 > (document.body.offsetWidth+document.body. scrollLeft)) tempx = document.body.offsetWidth+document.body.scrollLeft-30; +i+'.style.top = tempy;'); } if (n) { eval('document.layers.sDiv'+i+'.left = tempx;'); '.top = tempy;'); } j++; // tempo limite: 50 = velocidade dos fogos de artifício, número maior = velocidade mais lenta setTimeout("+i+","+j+","+mousex+","+mousey+" )",50 ) } else { eval('HIDE("sDiv'+i+'")'); totalSparks++; } if (totalSparks == 10) { sparksAflyin = 0; totalSparks = 0; } } function SHOW(divName) { if (document .all) eval('document.all.'+divName+'.style.visibility = "visible";'); else if (document.layers) eval('document.layers["'+divName+'" ].visibility = "visível";'); } function HIDE(divName){ if (document.all) eval('document.all.'+divName+'.style.visibility = "hidden";'); document.layers) eval('document.layers["'+divName+'"].visibility = "ocultar";'); 0,0, 0,0); anim_0_y=nova Matriz(-20,-40,-60,-80,-60,-40,-20,0,20,40,60,80); (20,20 ,17,36,60,78,90,92,93,98,108,120,133,152,181=nova Matriz(-20,-20,-33,-38,-38,-27,-2,25, 51,84,113,141,162,212,253) ; anim_2_x=nova Matriz(20,20,2,3,4,5,6,7,8,9,10,12,13,15,18); 20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253); ,94,94 ,93,97,108,111,117,127); ,-66, -17,27,87,140,189); -209,-191,-207,-203,-213,-202,-221,-211); ,-154, -193,-183,-149,-134,-89,-60,8,51,107,157,201); -164,-189,-209,-229,-247,-270,-279,-282,-283,-283,-285,-286,-288); ,-86, -116,-154,-183,-205,-217,-217,-198,-169,-120,-44,-8,40,87,144,190,248); -20,-7,14,44,79,143,186,217,226,234,244,250,259,265,274=nova Matriz(-20,-21,-72,-113,-139,-166,-188,-181,-126,-68,-3); ,54.134.187 ,215.257); ,-150,-160 ,-164,-168,-171,-172,-172,-176,-175); 116,-145,- 169,-201,-222,-240,-253,-254,-245,-220,-195,-160,-124,-81,-53,-26,19,68 ); 81,93,100,103,109); 209,-236,-193,-119,-73,-24,51,95,130,188); ,-259,-271 ,-277,-281,-287); anim_9_y=new Array(-20,-20,-35,-37,-34,-16,10,47,105,150,189,227,273); > </script> < !--Etapa 2: Altere <body> para--> <body bgcolor="#fef4d9" OnLoad="initMouseEvents()"> <!--Etapa 3: Adicione o seguinte código ao < corpo> área- -> <div id="sparks"> <div id="sDiv0" style="posição:absolute; visibilidade: oculto;"><font face="arial black" color="red">a< /font>< /div> <div id="sDiv1" style="position:absolute; visibilidade: oculto;"><font face="arial black" color="yellow">b</font></div> <div id= "sDiv2" style="position:absolute; visibilidade: oculto;"><font face="arial black" color="blue">c</font></div> <div id="sDiv3" style="posição :absolute; visibilidade: oculto;"><font face="arial black" color="red">d</font></div> <div id="sDiv4" style="position:absolute; visibilidade: oculto; "><font face="arial black" color="orange">e</font></div> <div id="sDiv5" style="position:absolute; visibilidade: oculto;">< font face="arial black" color="white">f</font></div> <div id="sDiv6" style="position:absolute; visibilidade: oculto;"><font face="arial black" color="green ">g</font></div> <div id="sDiv7" style="position:absolute; visibilidade: oculto;"><font face="arial black" color="skyblue">h </font> </div> <div id="sDiv8" style="position:absolute; visibilidade: oculto;"><font face="arial black" color="yellow">i</font></div > <div id ="sDiv9" style="posição:absolute; visibilidade: oculto;"><font face="arial black" color="white">j</font></div> </div>