// Fall v2.0 By MaxxBlade - http://www.maxxblade.co.uk/fall var fallObjects=new Array();function newObject(url,height,width){fallObjects[fallObjects.length]=new Array(url,height,width);} ///////////// EDIT THIS SECTION ////////////// var numObjs=20, waft=50, fallSpeed=5, wind=0; newObject("http://irvyxue.googlepages.com/snowflake.gif",28,25); newObject("http://irvyxue.googlepages.com/snowflake2.gif",28,25); newObject("http://irvyxue.googlepages.com/snowflake3.gif",28,25); newObject("http://irvyxue.googlepages.com/snowflake4.gif",21,21); newObject("http://irvyxue.googlepages.com/snowflake5.gif",21,21); ////////////////////////////////////////////// function winSize(){winWidth=(moz)?window.innerWidth:document.body.clientWidth;winHeight=(moz)?window.innerHeight:document.body.clientHeight;} function winOfy(){winOffset=(moz)?window.pageYOffset:document.body.scrollTop;} function fallObject(num,vari,nu){ objects[num]=new Array(parseInt(Math.random()*(winWidth-waft)),-30,(parseInt(Math.random()*waft))*((Math.random()>0.5)?1:-1),0.02+Math.random()/20,0,1+parseInt(Math.random()*fallSpeed),vari,fallObjects[vari][1],fallObjects[vari][2]); if(nu==1){document.write(''); } } function fall(){ for(i=0;i[1]>(winHeight-(objects[5]+objects[7])))||(objects[0]>(winWidth-(objects[2]+objects[8])))){fallObject(i,objects[6],0);} objects[0]+=wind;objects[1]+=objects[5];objects[4]+=objects[3]; with(fallingObject.style){ top=objects[1]+winOffset;left=objects[0]+(objects[2]*Math.cos(objects[4]));} } setTimeout("fall()",31); } var objects=new Array(),winOffset=0,winHeight,winWidth,togvis,moz=(document.getElementById&&!document.all)?1:0;winSize(); for (i=0;i