amp=new Array(); x_pos=new Array(); y_pos=new Array(); stx=new Array(); sty=new Array(); deltax=new Array(); obj=new Array(); for (i=0; i"); } obj[i] = document.getElementById("sn"+i); } function flake() { for (i=0; iheight-49) { x_pos[i]=Math.random()*(width-amp[i]-29); y_pos[i]=0; } deltax[i]+=stx[i]; obj[i].style.top=y_pos[i]+"px"; obj[i].style.left=x_pos[i]+amp[i]*Math.sin(deltax[i])+"px"; } setTimeout("flake()", 40); } flake();