Снежок на сайт - Форум - REDPhoeniX - Описание сайта



[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Снежок на сайт
NockNo1Дата: Суббота, 20.02.2010, 15:13 | Сообщение # 1
профи
Группа: Пользователи
Сообщений: 90
Статус:
Красивый снег на сайт. Подойдет под любые дизайны. К сожалению скриншота нету.
Код:
Code
     
<script language="JavaScript1.2">      
      grphcs=new Array(2)      
Image0=new Image();      
Image0.src=grphcs[0]="http://fantasyflash.ru/script/web/image/sneg2.gif";      
Image1=new Image();      
Image1.src=grphcs[1]="http://fantasyflash.ru/script/web/image/sneg1.gif";      
      Amount=25;      
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)?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];//osw      
document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');      
}      
document.write('</div></div>');      
}      
WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;      
WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;//fantasyflash.ru      
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;      
      Cstep[i]=0;      
      Step[i]=Math.random()*0.1+0.05;      
}      
function fall(){      
var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;      
var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;      
var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;      
var wscrll=(ns||ns6)?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;      
Xpos[i]+=sx;      
if (Ypos[i] > WinHeight){      
Ypos[i]=-60;      
Xpos[i]=Math.round(Math.random()*WinWidth);      
Speed[i]=Math.random()*5+3;      
}      
if (ns){      
document.layers['sn'+i].left=Xpos[i];      
document.layers['sn'+i].top=Ypos[i]+hscrll;      
}      
else if (ns6){      
document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i]);      
document.getElementById("si"+i).style.top=Ypos[i]+hscrll;      
}      
else{      
eval("document.all.si"+i).style.left=Xpos[i];      
eval("document.all.si"+i).style.top=Ypos[i]+hscrll;      
}      
Cstep[i]+=Step[i];      
}      
setTimeout('fall()',20);      
}      
      window.onload=fall      
//-->      
</script>     
<BR><META http-equiv="Content-Type" content="text/html; charset=utf-8"><META name="ProgId" content="Word.Document"><META name="Generator" content="Microsoft Word 11"><META name="Originator" content="Microsoft Word 11"><LINK rel="File-List" href="file:///C:%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml>     
      <w:WordDocument>     
      <w:View>Normal</w:View>     
      <w:Zoom>0</w:Zoom>     
      <w:PunctuationKerning/>     
      <w:ValidateAgainstSchemas/>     
      <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>     
      <w:IgnoreMixedContent>false</w:IgnoreMixedContent>     
      <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>     
      <w:Compatibility>     
      <w:BreakWrappedTables/>     
      <w:SnapToGridInCell/>     
      <w:WrapTextWithPunct/>     
      <w:UseAsianBreakRules/>     
      <w:DontGrowAutofit/>     
      </w:Compatibility>     
      <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>     
      </w:WordDocument>     
</xml><![endif]--><!--[if gte mso 9]><xml>     
      <w:LatentStyles DefLockedState="false" LatentStyleCount="156">     
      </w:LatentStyles>     
</xml><![endif]--><STYLE>     
<!--     
      /* Style Definitions */     
      p.MsoNormal, li.MsoNormal, div.MsoNormal     
      {mso-style-parent:"";     
      margin:0cm;     
      margin-bottom:.0001pt;     
      mso-pagination:widow-orphan;     
      font-size:12.0pt;     
      font-family:"Times New Roman";     
      mso-fareast-font-family:"Times New Roman";}     
@page Section1     
      {size:612.0pt 792.0pt;     
      margin:2.0cm 42.5pt 2.0cm 3.0cm;     
      mso-header-margin:36.0pt;     
      mso-footer-margin:36.0pt;     
      mso-paper-source:0;}     
div.Section1     
      {page:Section1;}     
-->     
</STYLE><!--[if gte mso 10]>     
<style>     
      /* Style Definitions */     
      table.MsoNormalTable     
      {mso-style-name:"Обычная таблица";     
      mso-tstyle-rowband-size:0;     
      mso-tstyle-colband-size:0;     
      mso-style-noshow:yes;     
      mso-style-parent:"";     
      mso-padding-alt:0cm 5.4pt 0cm 5.4pt;     
      mso-para-margin:0cm;     
      mso-para-margin-bottom:.0001pt;     
      mso-pagination:widow-orphan;     
      font-size:10.0pt;     
      font-family:"Times New Roman";     
      mso-ansi-language:#0400;     
      mso-fareast-language:#0400;     
      mso-bidi-language:#0400;}     
</style>     
<![endif]--><!--[if gte mso 9]><xml>     
      <o:shapedefaults v:ext="edit" spidmax="1026"/>     
</xml><![endif]--><!--[if gte mso 9]><xml>     
      <o:shapelayout v:ext="edit">     
      <o:idmap v:ext="edit" data="1"/>     
      </o:shapelayout></xml><![endif]-->

Всталять в любое место на сайте между тегами
 
  • Страница 1 из 1
  • 1
Поиск:





Статистика форума
Последние темыПоследние файлы
Лучшие пользователиНовые пользователи

Меню сайта для темных дизайнов

(Постов: 0)

Котёнок для сайта - скрипт для укоз

(Постов: 0)

Новый мини чат

(Постов: 0)

Состав клана - победы поражения для ucoz

(Постов: 0)


Оч большая заявка!!!

(Постов: 2)

ЗаЯвКа..

(Постов: 2)

Шапка

(Постов: 2)

Видеокурс по изучению HTML и CSS (Е. Попов)

(Постов: 1)


NockNo1

(Постов: 90)

Nock

(Постов: 32)

Batareyka

(Постов: 15)

jasminka

(Постов: 14)


manoha

(Дата регистрации: 14.06.2015)

KitanoSeeds

(Дата регистрации: 05.05.2015)

JOkerihe

(Дата регистрации: 20.01.2014)

SID

(Дата регистрации: 07.09.2013)


Мы будем Вам признательны, если вы в благодарность разместите любую понравившуюся Вам кнопку у себя на сайте.
Для получения html кода Нажмите на выбранную кнопку