/* Spiegato e commentato da https://www.iltelaiodipenelope.it */ var speed=30; // VelocitÓ caduta pioggia gif - Valore basso maggiore velocitÓ var flakes=15; // Numero di gif var flake_image="https://url gif"; // Url immagine gif /***************************\ *Winter Drifting Snow Effect* *(c) 2006 mf2fm web-design* * http://www.mf2fm.com/rv * * DON'T EDIT BELOW THIS BOX * \***************************/ var swide, shigh; var dx=new Array(); var xp=new Array(); var yp=new Array(); var am=new Array(); var sty=new Array(); window.onload=function() { if (document.getElementById) { var k, f, b; b=document.createElement("div"); b.style.position="absolute"; b.setAttribute("id", "bod"); document.body.appendChild(b); set_scroll(); set_width(); for (var i=0; ishigh-30) { xp[i]=am[i]+Math.random()*(swide-2*am[i]-25); yp[i]=0; sty[i]=0.75+1.25*Math.random(); } dx[i]+=0.02+Math.random()/10; document.getElementById("flk"+i).style.top=yp[i]+"px"; document.getElementById("flk"+i).style.left=(xp[i]+am[i]*Math.sin(dx[i]))+"px"; } }