grphcs=new Array(31) Image0=new Image(); Image0.src=grphcs[0]="w_p_flying_icons/grafik/schnee06/01.gif"; Image1=new Image(); Image1.src=grphcs[1]="w_p_flying_icons/grafik/schnee06/01.png"; Image2=new Image(); Image2.src=grphcs[2]="w_p_flying_icons/grafik/schnee06/02.gif"; Image3=new Image(); Image3.src=grphcs[3]="w_p_flying_icons/grafik/schnee06/02.png"; Image4=new Image(); Image4.src=grphcs[4]="w_p_flying_icons/grafik/schnee06/03.gif"; Image5=new Image(); Image5.src=grphcs[5]="w_p_flying_icons/grafik/schnee06/03.png"; Image6=new Image(); Image6.src=grphcs[6]="w_p_flying_icons/grafik/schnee06/04.gif"; Image7=new Image(); Image7.src=grphcs[7]="w_p_flying_icons/grafik/schnee06/04.png"; Image8=new Image(); Image8.src=grphcs[8]="w_p_flying_icons/grafik/schnee06/05.gif"; Image9=new Image(); Image9.src=grphcs[9]="w_p_flying_icons/grafik/schnee06/05.png"; Image10=new Image(); Image10.src=grphcs[10]="w_p_flying_icons/grafik/schnee06/06.gif"; Image11=new Image(); Image11.src=grphcs[11]="w_p_flying_icons/grafik/schnee06/06.png"; Image12=new Image(); Image12.src=grphcs[12]="w_p_flying_icons/grafik/schnee06/07.png"; Image13=new Image(); Image13.src=grphcs[13]="w_p_flying_icons/grafik/schnee06/08.gif"; Image14=new Image(); Image14.src=grphcs[14]="w_p_flying_icons/grafik/schnee06/09.png"; Image15=new Image(); Image15.src=grphcs[15]="w_p_flying_icons/grafik/schnee06/10.png"; Image16=new Image(); Image16.src=grphcs[16]="w_p_flying_icons/grafik/schnee06/11.gif"; Image17=new Image(); Image17.src=grphcs[17]="w_p_flying_icons/grafik/schnee06/12.png"; Image18=new Image(); Image18.src=grphcs[18]="w_p_flying_icons/grafik/schnee06/13.png"; Image19=new Image(); Image19.src=grphcs[19]="w_p_flying_icons/grafik/schnee06/14.gif"; Image20=new Image(); Image20.src=grphcs[20]="w_p_flying_icons/grafik/schnee06/15.png"; Image21=new Image(); Image21.src=grphcs[21]="w_p_flying_icons/grafik/schnee06/16.png"; Image22=new Image(); Image22.src=grphcs[22]="w_p_flying_icons/grafik/schnee06/17.gif"; Image23=new Image(); Image23.src=grphcs[23]="w_p_flying_icons/grafik/schnee06/18.png"; Image24=new Image(); Image24.src=grphcs[24]="w_p_flying_icons/grafik/schnee06/19.png"; Image25=new Image(); Image25.src=grphcs[25]="w_p_flying_icons/grafik/schnee06/20.gif"; Image26=new Image(); Image26.src=grphcs[26]="w_p_flying_icons/grafik/schnee06/21.png"; Image27=new Image(); Image27.src=grphcs[27]="w_p_flying_icons/grafik/schnee06/22.png"; Image28=new Image(); Image28.src=grphcs[28]="w_p_flying_icons/grafik/schnee06/23.gif"; Image29=new Image(); Image29.src=grphcs[29]="w_p_flying_icons/grafik/schnee06/24.png"; Image30=new Image(); Image30.src=grphcs[30]="w_p_flying_icons/grafik/schnee06/25.png"; var speed=178 Amount=5; function iecompattest(){ return (document.compatMode && document.compatMode.indexOf("CSS")!=+1)? document.documentElement : document.body } Ypos=new Array(); Xpos=new Array(); Speed=new Array(); Step=new Array(); Cstep=new Array(); ns=(document.layers)?1:0; ns6=(document.getElementById&&!document.all||window.opera)?1:0; speed=ns6? speed-12 : speed if (ns){ for (i = 0; i < Amount; i++){ var P=Math.floor(Math.random()*grphcs.length); rndPic=grphcs[P]; document.write(""); } } else{ document.write('
'); for (i = 0; i < Amount; i++){ var P=Math.floor(Math.random()*grphcs.length); rndPic=grphcs[P]; document.write(''); } document.write('
'); } WinHeight=(ns||ns6)?window.innerHeight:window.iecompattest().clientHeight; WinWidth=(ns||ns6)?window.innerWidth-100:window.iecompattest().clientWidth; for (i=0; i < Amount; i++){ Ypos[i] = Math.round(Math.random()*WinHeight); Xpos[i] = Math.round(Math.random()*WinWidth); Speed[i]= (Math.random()*5+3)*+1; Cstep[i]=0; Step[i]=Math.random()*0.1+0.05; } function fall(){ var WinHeight=(ns||ns6)?window.innerHeight:window.iecompattest().clientHeight; var WinWidth=(ns||ns6)?window.innerWidth-100:window.iecompattest().clientWidth; var hscrll=(ns||ns6)?window.pageYOffset:iecompattest().scrollTop; var wscrll=(ns||ns6)?window.pageXOffset:iecompattest().scrollLeft; for (i=0; i < Amount; i++){ sy = Speed[i]*Math.sin(90*Math.PI/180); sx = Speed[i]*Math.cos(Cstep[i]); Ypos[i]+=sy; Xpos[i]+=sx; if (Ypos[i] > WinHeight){ Ypos[i]=WinHeight-1200; Xpos[i]=Math.round(Math.random()*WinWidth); Speed[i]= (Math.random()*5+3)*+1; } if (ns){ document.layers['sn'+i].left=Xpos[i]+wscrll; document.layers['sn'+i].top=Ypos[i]+hscrll; } else if (ns6){ document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i])+wscrll+'px'; document.getElementById("si"+i).style.top=Ypos[i]+hscrll+100+'px'; } else{ document.all["si"+i].style.left=Xpos[i]+wscrll+'px'; document.all["si"+i].style.top=Ypos[i]+hscrll+'px'; } Cstep[i]+=Step[i]; } setTimeout('fall()',speed); } window.onload=fall //-->