Воскресенье, 13.07.2025, 20:26 На сайте время по Москве
Главная | Регистрация | Вход

Реклама
Реклама
Реклама






  • Страница 1 из 1
  • 1
Скрипт снега
eXz
Дата: Четверг, 22.04.2010, 19:30 | Сообщение # 1
Сообщений: 516
Репутация: 29
Награды: 5

ПУ-->Управление дизайном. В нужных модулях, между <body> и </body> ставим это

Code
<SCRIPT language=JavaScript>   
Amount=25;    

Image0=new Image();   
Image0.src="http://fantasyflash.ru/script/web/image/sneg4.gif";   

grphcs=new Array(1)   
grphcs[0]="http://fantasyflash.ru/script/web/image/sneg4.gif"   

Ypos=new Array();   
Xpos=new Array();   
Speed=new Array();   
Step=new Array();   
Cstep=new Array();   
ns=(document.layers)?1:0;   
if (ns){   
for (i = 0; i < Amount; i++){   
var P=Math.floor(Math.random()*grphcs.length);   
rndPic=grphcs[P];   
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>");   
}   
}   
else{   
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');   
for (i = 0; i < Amount; i++){   
var P=Math.floor(Math.random()*grphcs.length);   
rndPic=grphcs[P];   
document.write('<img id="si" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');   
}   
document.write('</div></div>');   
}   
WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;   
WinWidth=(document.layers)?window.innerWidth:window.document.body.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()*3+2;   
    Cstep[i]=0;//osw   
    Step[i]=Math.random()*0.1+0.05;   
}//fantasyflash.ru   
function fall(){   
var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;   
var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;   
var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;   
var wscrll=(document.layers)?window.pageXOffset:document.body.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;//osw   
Xpos[i]+=sx;   
if (Ypos[i] > WinHeight){   
Ypos[i]=-60;   
Xpos[i]=Math.round(Math.random()*WinWidth);   
Speed[i]=Math.random()*5+2;   
}   
if (ns){   
document.layers['sn'+i].left=Xpos[i];   
document.layers['sn'+i].top=Ypos[i]+hscrll;   
}   
else{   
si[i].style.pixelLeft=Xpos[i];   
si[i].style.pixelTop=Ypos[i]+hscrll;   
}   
Cstep[i]+=Step[i];   
}   
setTimeout('fall()',35);   
}   
fall()   
</SCRIPT>


  • Страница 1 из 1
  • 1
Поиск:

Сегодня нас посетили
Лучшии пользователиНовые пользователи
eXz Постов [516]
paradox Постов [52]
LoL_BoT Постов [51]
p0z1t1v Постов [43]
BotsMan Постов [40]
Yuratr Дата [04.09.2024]
xyn-bol Дата [01.06.2024]
PonnonDut Дата [26.04.2018]
daxian Дата [22.04.2018]
JustinOtopejgOlyhivlIZ Дата [22.01.2017]

PRO86.3DN.RU © 2025 | Хостинг от uCoz
Пути к - sitemap.xml | sitemap-forum.xml | urllist.txt
На сайте вы найдете все для Counter Strike 1.6 - CS Source- uCoz
Фотошоп - GTA San Andreas - Фильмы - MP3 - Читы для cs
Онлайн сериалы и многое другое..
Для корректного отображения страниц сайта рекомендуем использовать Браузер
C разрешением экрана от 1024х768 и выше