grphcs=new Array(11) Image0=new Image(); Image0.src=grphcs[0]="w_p_flying_icons/grafik/Herbst/01.png"; Image1=new Image(); Image1.src=grphcs[1]="w_p_flying_icons/grafik/Herbst/02.png"; Image2=new Image(); Image2.src=grphcs[2]="w_p_flying_icons/grafik/Herbst/03.png"; Image3=new Image(); Image3.src=grphcs[3]="w_p_flying_icons/grafik/Herbst/04.png"; Image4=new Image(); Image4.src=grphcs[4]="w_p_flying_icons/grafik/Herbst/05.png"; Image5=new Image(); Image5.src=grphcs[5]="w_p_flying_icons/grafik/Herbst/06.png"; Image6=new Image(); Image6.src=grphcs[6]="w_p_flying_icons/grafik/Herbst/07.png"; Image7=new Image(); Image7.src=grphcs[7]="w_p_flying_icons/grafik/Herbst/08.png"; Image8=new Image(); Image8.src=grphcs[8]="w_p_flying_icons/grafik/Herbst/09.png"; Image9=new Image(); Image9.src=grphcs[9]="w_p_flying_icons/grafik/Herbst/10.png"; Image10=new Image(); Image10.src=grphcs[10]="w_p_flying_icons/grafik/Herbst/2.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 //-->