Ставим куда угодно или после <!-- Body --> Вот скрипт: Code <SCRIPT language=JavaScript> <br> <!-- <br> Image0 = new Image(); <br> Image0.src = "http://svweb.narod.ru/image/zv22.gif"; <br> Amount = 10; <br> Ymouse = -30; <br> Xmouse = -30; <br> Ypos = new Array(); <br> Xpos = new Array(); <br> Speed = new Array(); <br> rate = new Array(); <br> grow = new Array(); <br> Step = new Array(); <br> Cstep = new Array(); <br> nsSize = new Array(); <br> ns = (document.layers)?1:0; <br> (document.layers)?window.captureEvents(Event.MOUSEMOVE):0; <br> function Mouse(evnt) { <br> Ymouse=(document.layers)?evnt.pageY-20:event.y-20; <br> Xmouse=(document.layers)?evnt.pageX:event.x; <br> } <br> (document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse; <br> for (i = 0; i < Amount; i++) { <br> Ypos[i] = Ymouse; <br> Xpos[i] = Xmouse; <br> Speed[i] = Math.random()*6+2; <br> Cstep[i] = 0; <br> Step[i] = Math.random()*0.1+0.05; <br> grow[i] = 5; <br> nsSize[i] = Math.random()*15+5; <br> rate[i] = Math.random()*0.5+0.1; <br> } <br> if (ns) { <br> for (i = 0; i < Amount; i++) { <br> document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+Image0.src+" name='N' width="+nsSize[i]+" height="+nsSize[i]+"></LAYER>"); <br> } <br> } <br> else { <br> document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); <br> for (i = 0; i < Amount; i++) { <br> document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=80)">'); <br> } <br> document.write('</div></div>'); <br> } <br> function Fly() { <br> var hscrll = (document.layers)?window.pageYOffset:document.body.scrollTop; <br> var wscrll = (document.layers)?window.pageXOffset:document.body.scrollLeft; <br> for (i = 0; i < Amount; i++){ <br> sy = Speed[i] * Math.sin(270 * Math.PI / 180); <br> sx = Speed[i] * Math.cos(Cstep[i] * 4); <br> Ypos[i] += sy; <br> Xpos[i] += sx; <br> if (Ypos[i] < -40) { <br> Ypos[i] = Ymouse; <br> Xpos[i] = Xmouse; <br> Speed[i] = Math.random() * 5 + 3; <br> grow[i] = 5;//osw <br> nsSize[i] = Math.random() * 15 + 5; <br> } <br> if (ns) { <br> document.layers['sn'+i].left = Xpos[i] + wscrll; <br> document.layers['sn'+i].top = Ypos[i] + hscrll; <br> } <br> else { <br> si[i].style.pixelLeft = Xpos[i] + wscrll; <br> si[i].style.pixelTop = Ypos[i] + hscrll; <br> si[i].style.width = grow[i]; <br> si[i].style.height = grow[i]; <br> } <br> grow[i] += rate[i]; <br> Cstep[i] += Step[i]; <br> if (grow[i] > 25) grow[i] = 25; <br> } <br> setTimeout('Fly()', 10); <br> } <br> Fly(); <br> --> <br> </SCRIPT>
Автор\Источник: не указан или не известен!
Для того что бы скачать архив необходимо зайти на сайт как пользователь.
|