Форум технической поддержки

Объявление

Обязательно указывайте адрес вашего форума, иначе мы не сможем вам помочь

Новости сервиса

28 Апреля, 2010

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Форум технической поддержки » Новые возможности форума » Скрипты от пользователей


Скрипты от пользователей

Сообщений 31 страница 46 из 46

31

Забавный скрипт, показывающий случайную цитату с http://bash.org.ru
* Вставляем куда душе угодно

Код:
<div style="border: 1px solid #9999bb; background: #FFFFFF; padding: 5px; font-family: 'Tahoma'; font-size: 9pt;"><span class="style3"></span>
  <script language="JavaScript" type="text/javascript" src="http://bash.org.ru/forweb">
</script>
</div>

0

32

Эффекты с курсором

кружатся вокруг курсора мигающие снежинки

Код:
<a href="http://sababa.webhost.ru" target=_blank> <img src="http://sababa.webhost.ru/image/BANNIER.gif" border="0"alt=" Cкрипты, шаблоны, курсоры, часы и знаменитости." width=125height=105></a></center>
<IMG id=balloon 
style="DISPLAY: none" src="http://img164.imageshack.us/img164/1442/star71yx.gif
" width="21" height="29">
<SCRIPT language=javascript>
var images=balloon.src;//Put your image name here!! 
var amount=7;//Number of images here. Do not alter for this script!!
var cnter=70;
var step;
var currStep = 0;
var Xpos = 0;
var Ypos = 0;
if (document.all)
{
document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">')
document.write('<div id="c" style="position:relative">');
for (n=0; n < amount; n++)
document.write('<img src=" '+images+'" style="position:absolute;top:0px;left:0px">')
document.write('</div>')
document.write('</div>')

function MsieMouseFollow(){
Xpos = document.body.scrollLeft+event.x-5;
Ypos = document.body.scrollTop+event.y-5;
}
document.onmousemove = MsieMouseFollow;
}
else if (document.layers)
{
window.captureEvents(Event.MOUSEMOVE);
for (ns=0; ns < amount; ns++) 
document.write("<LAYER NAME='n"+ns+"' LEFT=0 TOP=0><IMG SRC='"+images+"'></LAYER>");
function NsMouseFollow(evnt){
Xpos = evnt.pageX-5;
Ypos = evnt.pageY-5;
}
window.onMouseMove = NsMouseFollow;
}

function Swirl(){
if (currStep<0.0550)
step=0.001;
if (document.all)
{
for (i=0;i<ieDiv.all.c.all.length;i++)
{
ieDiv.all.c.all[i].style.top = Ypos+cnter*Math.cos((currStep+i*4.5)/5)*Math.sin((currStep)*150);
ieDiv.all.c.all[i].style.left = Xpos+cnter*Math.sin((currStep+i*4.5)/5)*Math.sin((currStep)*150);
}
}
else if (document.layers)
{
for ( i = 0 ; i < ns ; i++ )
{
var temp="n"+i
document.layers[temp].top = Ypos+cnter*Math.cos((currStep+i*4.5)/5)*Math.sin((currStep)*150);
document.layers[temp].left =Xpos+cnter*Math.sin((currStep+i*4.5)/5)*Math.sin((currStep)*150);
}
}
currStep += step;
setTimeout("Swirl()", 10);
if (currStep>0.0540)
{
step+=0.002;
if (document.layers)
{
for ( i = 0 ; i < ns ; i++ )
{
var temp="n"+i
document.layers[temp].top =Ypos+cnter*Math.cos((currStep+i*4.5)/5)
document.layers[temp].left=Xpos+cnter*Math.sin((currStep+i*4.5)/5)
}
}
else if (document.all)
{
for (i=0;i<ieDiv.all.c.all.length;i++)
{
ieDiv.all.c.all[i].style.top=Ypos+cnter*Math.cos((currStep+i*4.5)/5)
ieDiv.all.c.all[i].style.left=Xpos+cnter*Math.sin((currStep+i*4.5)/5)
}
} 
}
if (step > 0.5)
{
step=0.5;
cnter-=8;
}
if (document.layers)
_y=-window.innerWidth;
else if (document.all)
_y=-document.body.clientWidth;
if (cnter <= _y)
{
currStep=0;
step=0.001;
cnter=70;
}
}
Swirl();
// -->
</SCRIPT>

0

33

Поздравлялка (или предупреждалка). (c)Duka
Скрипт выводит в объявлении текст определенному пользователю. Что там будет написано зависит от вашей фантазии, будь то Поздравление или предупреждение.
Текст будет виден только определенному пользователю, для остальных он не действует.

Код:
<script language="JavaScript">
if(document.getElementById('pun-status').innerHTML.indexOf("Ник")!=-1)
{
document.write('<b>Ваш текст</b>');
}
</script>

Вставлять лучше в объявление.

0

34

Синие звездочки летят вниз:

Код:
<marquee behavior=scroll direction=down scrollamount=6 scrolldelay=45 height=693 style='position:absolute; left:84%; top:97px; width:30; height:693px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=6 scrolldelay=32 height=544 style='position:absolute; left:36%; top:169px; width:30; height:544px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=6 scrolldelay=15 height=550 style='position:absolute; left:80%; top:139px; width:30; height:550px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=3 scrolldelay=47 height=588 style='position:absolute; left:77%; top:126px; width:30; height:588px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=1 scrolldelay=22 height=612 style='position:absolute; left:15%; top:42px; width:30; height:612px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=4 scrolldelay=23 height=524 style='position:absolute; left:28%; top:78px; width:30; height:524px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=2 scrolldelay=40 height=580 style='position:absolute; left:85%; top:134px; width:30; height:580px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=1 scrolldelay=32 height=642 style='position:absolute; left:86%; top:190px; width:30; height:642px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=4 scrolldelay=37 height=634 style='position:absolute; left:56%; top:63px; width:30; height:634px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=down scrollamount=6 scrolldelay=20 height=590 style='position:absolute; left:51%; top:20px; width:30; height:590px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>

Летят вверх:

Код:
<marquee behavior=scroll direction=up scrollamount=3 scrolldelay=7 height=574 style='position:absolute; left:82%; top:36px; width:30; height:574px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=5 scrolldelay=23 height=607 style='position:absolute; left:22%; top:87px; width:30; height:607px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=3 scrolldelay=15 height=546 style='position:absolute; left:15%; top:26px; width:30; height:546px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=4 scrolldelay=45 height=573 style='position:absolute; left:26%; top:55px; width:30; height:573px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=2 scrolldelay=34 height=520 style='position:absolute; left:82%; top:6px; width:30; height:520px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=1 scrolldelay=23 height=583 style='position:absolute; left:81%; top:4px; width:30; height:583px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=1 scrolldelay=23 height=534 style='position:absolute; left:84%; top:54px; width:30; height:534px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=4 scrolldelay=15 height=629 style='position:absolute; left:56%; top:150px; width:30; height:629px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=4 scrolldelay=48 height=655 style='position:absolute; left:25%; top:176px; width:30; height:655px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=up scrollamount=4 scrolldelay=24 height=610 style='position:absolute; left:50%; top:83px; width:30; height:610px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>

Влево:

Код:
<marquee behavior=scroll direction=left scrollamount=3 scrolldelay=6 width=95% style='position:absolute; left:5%; top:88px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=5 scrolldelay=31 width=95% style='position:absolute; left:5%; top:492px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=2 scrolldelay=26 width=95% style='position:absolute; left:5%; top:457px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=5 scrolldelay=31 width=95% style='position:absolute; left:5%; top:200px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=1 scrolldelay=14 width=95% style='position:absolute; left:5%; top:356px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=3 scrolldelay=19 width=95% style='position:absolute; left:5%; top:108px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=5 scrolldelay=47 width=95% style='position:absolute; left:5%; top:30px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=5 scrolldelay=18 width=95% style='position:absolute; left:5%; top:358px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=2 scrolldelay=46 width=95% style='position:absolute; left:5%; top:456px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=left scrollamount=3 scrolldelay=46 width=95% style='position:absolute; left:5%; top:177px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>

Вправо:

Код:
<marquee behavior=scroll direction=right scrollamount=2 scrolldelay=9 width=95% style='position:absolute; left:5%; top:77px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=3 scrolldelay=42 width=95% style='position:absolute; left:5%; top:97px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=3 scrolldelay=5 width=95% style='position:absolute; left:5%; top:80px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=6 scrolldelay=6 width=95% style='position:absolute; left:5%; top:446px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=6 scrolldelay=26 width=95% style='position:absolute; left:5%; top:120px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=5 scrolldelay=18 width=95% style='position:absolute; left:5%; top:189px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=3 scrolldelay=11 width=95% style='position:absolute; left:5%; top:43px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=5 scrolldelay=15 width=95% style='position:absolute; left:5%; top:407px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=2 scrolldelay=49 width=95% style='position:absolute; left:5%; top:157px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=scroll direction=right scrollamount=5 scrolldelay=28 width=95% style='position:absolute; left:5%; top:29px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>

Влево-вправо:

Код:
<marquee behavior=alternate direction=right scrollamount=6 scrolldelay=21 width=95% style='position:absolute; left:5%; top:60px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=1 scrolldelay=13 width=95% style='position:absolute; left:5%; top:43px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=4 scrolldelay=26 width=95% style='position:absolute; left:5%; top:122px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=6 scrolldelay=41 width=95% style='position:absolute; left:5%; top:477px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=3 scrolldelay=16 width=95% style='position:absolute; left:5%; top:167px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=2 scrolldelay=37 width=95% style='position:absolute; left:5%; top:180px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=4 scrolldelay=46 width=95% style='position:absolute; left:5%; top:166px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=6 scrolldelay=44 width=95% style='position:absolute; left:5%; top:293px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=2 scrolldelay=37 width=95% style='position:absolute; left:5%; top:75px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=right scrollamount=6 scrolldelay=15 width=95% style='position:absolute; left:5%; top:203px; width:95%; height:26px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>

Вверх-вниз:

Код:
<marquee behavior=alternate direction=up scrollamount=2 scrolldelay=6 height=641 style='position:absolute; left:83%; top:170px; width:30; height:641px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=2 scrolldelay=16 height=665 style='position:absolute; left:40%; top:63px; width:30; height:665px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=3 scrolldelay=17 height=642 style='position:absolute; left:30%; top:2px; width:30; height:642px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=5 scrolldelay=6 height=556 style='position:absolute; left:78%; top:117px; width:30; height:556px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=1 scrolldelay=45 height=590 style='position:absolute; left:89%; top:75px; width:30; height:590px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=1 scrolldelay=39 height=580 style='position:absolute; left:65%; top:182px; width:30; height:580px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=6 scrolldelay=45 height=661 style='position:absolute; left:23%; top:75px; width:30; height:661px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=1 scrolldelay=29 height=590 style='position:absolute; left:63%; top:85px; width:30; height:590px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=2 scrolldelay=22 height=508 style='position:absolute; left:92%; top:196px; width:30; height:508px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>
<marquee behavior=alternate direction=up scrollamount=6 scrolldelay=10 height=600 style='position:absolute; left:56%; top:179px; width:30; height:600px;'><img src=http://dl9.glitter-graphics.net/pub/52/52079ez63hcoqpn.gif border=0></marquee>

0

35

Эффект Космоса - вылетающие из центра экрана желтые звездочки;
Вставляем в HTML-низ:

Код:
<Style Type="Text/CSS">
    <!--
    .Congrats {
    font-family: Impact;
    font-size: 26px;
    font-weight: normal;
    }
    .You {
    font-family: Impact;
    font-size: 26px;
    font-weight: normal;
    color: #FFFFFF;
    }
    .Close {
    font-family: Impact;
    font-size: 18px;
    font-weight: normal;
    }
    A:Link {color:#FFE466;text-decoration: none;}
    A:Visited {color:#FFE466;text-decoration: none;}
    A:Active {color:#FFE466;text-decoration: none;}
    A:Hover {color:#FFFFFF;text-decoration: underline;}
     -->
    </Style>
    <SCRIPT language=javascript>
    <!--//
    function right(e) {
      if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
      else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
        alert("Function disabled!");
        return false;}
      return true;}
    //-->
    </SCRIPT>
    <Script Language="JavaScript1.2">
    <!--
    grphcs=new Array(5)

    Image0=new Image();
    Image0.src=grphcs[0]="http://forumupload.ru/uploads/0002/25/06/9232-1.gif"
    Image1=new Image();
    Image1.src=grphcs[1]="http://forumupload.ru/uploads/0002/25/06/9232-1.gif"
    Image2=new Image();
    Image2.src=grphcs[2]="http://forumupload.ru/uploads/0002/25/06/9232-1.gif"
    Image3=new Image();
    Image3.src=grphcs[3]="http://forumupload.ru/uploads/0002/25/06/9232-1.gif"
    Image4=new Image();
    Image4.src=grphcs[4]="http://forumupload.ru/uploads/0002/25/06/9232-1.gif"

    Amount=20;
    Ypos=new Array();
    Xpos=new Array();
    Zpos=new Array();
    //SpeedX=new Array();
    //SpeedY=new Array();
    ScrXpos=new Array();
    ScrYpos=new Array();
    Speed=new Array();
    Size=new Array();
    Step=new Array();
    ns=(document.layers)?1:0;
    ie=document.all&&navigator.userAgent.indexOf("Opera")==-1

    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>");
    } //end for
    } //end if
    else if (ie){ //IE
    document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < Amount; i++){
     document.write('<img id="si'+i+'" src="'+grphcs[Math.round((i+1)*(grphcs.length-1)/Amount)]+'"style="position:absolute;top:0px;left:0px">');
    }
    document.write('</div></div>');
    }

    if (ie||ns){
    WinHeight=(ns)?window.innerHeight-20:window.document.body.clientHeight;
    WinWidth=(ns)?window.innerWidth-70:window.document.body.clientWidth;
    for (i=0; i < Amount; i++){
      Speed[i]=(i+1)*6/Amount+4; //speed range from 4 to 10
      Xpos[i] = (Math.random()*WinWidth-WinWidth/2)*(Amount-i/3)/Amount;
      Ypos[i] = (Math.random()*WinHeight-WinHeight/2)*(Amount-i/3)/Amount;
      Zpos[i] = Math.random()*900*(Amount-i/3)/Amount+100;
    }
    }

    function fly(){
    var WinHeight=(ns)?window.innerHeight-20:window.document.body.clientHeight;
    var WinWidth=(ns)?window.innerWidth-70:window.document.body.clientWidth;
    var hscrll=(ns)?window.pageYOffset:document.body.scrollTop;

    for (i=0; i < Amount; i++){
     Zpos[i]-=Speed[i];
     if (ScrXpos[i]>WinWidth || ScrXpos[i]<0 || ScrYpos[i]>WinHeight || ScrYpos[i]<0 || Zpos[i]<=0) {
      Speed[i]=(i+1)*6/Amount+4; //speed range from 4 to 10
      Xpos[i] = (Math.random()*WinWidth-WinWidth/2)*(Amount-i/3)/Amount;
      Ypos[i] = (Math.random()*WinHeight-WinHeight/2)*(Amount-i/3)/Amount;
      Zpos[i] = Math.random()*900*(Amount-i/3)/Amount+100;
     }
     ScrXpos[i]=Xpos[i]/Zpos[i]*100 + WinWidth/2;
     ScrYpos[i]=Ypos[i]/Zpos[i]*100 + WinHeight/2;

     if (ns){
      document.layers['sn'+i].left=ScrXpos[i];
      document.layers['sn'+i].top=ScrYpos[i]+hscrll;
     }
     else{ //IE
      eval("document.all.si"+i).style.left=ScrXpos[i];
      eval("document.all.si"+i).style.top=ScrYpos[i]+hscrll;
     }
    } //end for
    setTimeout('fly()',20);
    } //end fly

    if (ie||ns)
    window.onload=fly
    //-->
    </Script>

0

36

Розочки летят вверх;
Втавляем в HTML-низ:

Код:
<script language="JavaScript1.2">
<!-- Begin
var no = 15; // image number or falling rate
var speed = 4; // the lower the number the faster the image moves
var snow = new Array();
snow[0] = "http://forumupload.ru/uploads/0002/25/06/9228-1.gif"
snow[1] = "http://forumupload.ru/uploads/0002/25/06/9228-1.gif"
snow[2] = "http://forumupload.ru/uploads/0002/25/06/9228-1.gif"

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 800, doc_height = 1800;

if (ns4up||ns6up) {
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
} else if (ie4up) {
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
        if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                }        } else if (ie4up||ns6up) {                if (i == 0) 
{
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = self.innerWidth;
                        doc_height = self.innerHeight;                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = yp[i]+pageYOffset;
                document.layers["dot"+i].left = xp[i] + 
am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", speed);
}

function snowIE_NS6() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];
                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                }
                dx[i] += stx[i];
                if (ie4up){
                document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                }
                else if (ns6up){
                document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                }
        }
        setTimeout("snowIE_NS6()", speed);
}

if (ns4up) {
        snowNS();
} else if (ie4up||ns6up) {
        snowIE_NS6();
}
// End -->
</script>

0

37

Цветные мигающие звездочки;
Вставляем в HTML-низ:

Код:
<script language="JavaScript1.2">
<!-- Begin
var no = 15; // image number or falling rate
var speed = 4; // the lower the number the faster the image moves
var snow = new Array();
snow[0] = "http://forumupload.ru/uploads/0002/25/06/9229-1.gif"
snow[1] = "http://forumupload.ru/uploads/0002/25/06/9229-2.gif"
snow[2] = "http://forumupload.ru/uploads/0002/25/06/9229-3.gif"

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 800, doc_height = 1800;

if (ns4up||ns6up) {
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
} else if (ie4up) {
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
        if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                }        } else if (ie4up||ns6up) {                if (i == 0) 
{
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = self.innerWidth;
                        doc_height = self.innerHeight;                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = yp[i]+pageYOffset;
                document.layers["dot"+i].left = xp[i] + 
am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", speed);
}

function snowIE_NS6() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];
                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                }
                dx[i] += stx[i];
                if (ie4up){
                document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                }
                else if (ns6up){
                document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                }
        }
        setTimeout("snowIE_NS6()", speed);
}

if (ns4up) {
        snowNS();
} else if (ie4up||ns6up) {
        snowIE_NS6();
}
// End -->
</script>

0

38

Зеленые сердечки;
Вставляем в HTML-низ:

Код:
<script language="JavaScript1.2">
<!-- Begin
var no = 15; // image number or falling rate
var speed = 4; // the lower the number the faster the image moves
var snow = new Array();
snow[0] = "http://forumupload.ru/uploads/0002/25/06/9230-1.gif"
snow[1] = "http://forumupload.ru/uploads/0002/25/06/9230-1.gif"
snow[2] = "http://forumupload.ru/uploads/0002/25/06/9230-1.gif"

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 800, doc_height = 1800;

if (ns4up||ns6up) {
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
} else if (ie4up) {
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
        if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                }        } else if (ie4up||ns6up) {                if (i == 0) 
{
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = self.innerWidth;
                        doc_height = self.innerHeight;                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = yp[i]+pageYOffset;
                document.layers["dot"+i].left = xp[i] + 
am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", speed);
}

function snowIE_NS6() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];
                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                }
                dx[i] += stx[i];
                if (ie4up){
                document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                }
                else if (ns6up){
                document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                }
        }
        setTimeout("snowIE_NS6()", speed);
}

if (ns4up) {
        snowNS();
} else if (ie4up||ns6up) {
        snowIE_NS6();
}
// End -->
</script>

0

39

Розовые сердечки;
Вставляем в HTML-низ:

Код:
<script language="JavaScript1.2">
<!-- Begin
var no = 15; // image number or falling rate
var speed = 4; // the lower the number the faster the image moves
var snow = new Array();
snow[0] = "http://forumupload.ru/uploads/0002/25/06/9231-1.gif"
snow[1] = "http://forumupload.ru/uploads/0002/25/06/9231-1.gif"
snow[2] = "http://forumupload.ru/uploads/0002/25/06/9231-1.gif"

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 800, doc_height = 1800;

if (ns4up||ns6up) {
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
} else if (ie4up) {
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
        if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                }        } else if (ie4up||ns6up) {                if (i == 0) 
{
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = self.innerWidth;
                        doc_height = self.innerHeight;                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = yp[i]+pageYOffset;
                document.layers["dot"+i].left = xp[i] + 
am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", speed);
}

function snowIE_NS6() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];
                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                }
                dx[i] += stx[i];
                if (ie4up){
                document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                }
                else if (ns6up){
                document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                }
        }
        setTimeout("snowIE_NS6()", speed);
}

if (ns4up) {
        snowNS();
} else if (ie4up||ns6up) {
        snowIE_NS6();
}
// End -->
</script>

0

40

Мигающие желтые звездочки;
Вставляем в HTML-низ:

Код:
<script language="JavaScript1.2">
    <!-- Begin
    var no = 15; // image number or falling rate
    var speed = 4; // the lower the number the faster the image moves
    var snow = new Array();
    snow[0] = "http://forumupload.ru/uploads/0002/25/06/9232-1.gif"
    snow[1] = "http://forumupload.ru/uploads/0002/25/06/9232-1.gif"
    snow[2] = "http://forumupload.ru/uploads/0002/25/06/9232-1.gif"

    var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
    var ie4up = (document.all) ? 1 : 0;
    var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
    var dx, xp, yp;    // coordinate and position variables
    var am, stx, sty;  // amplitude and step variables
    var i, doc_width = 800, doc_height = 1800;

    if (ns4up||ns6up) {
            doc_width = self.innerWidth;
            doc_height = self.innerHeight;
    } else if (ie4up) {
            doc_width = document.body.clientWidth;
            doc_height = document.body.clientHeight;
    }

    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();
    j = 0;

    for (i = 0; i < no; ++ i) {
            dx[i] = 0;                        // set coordinate variables
            xp[i] = Math.random()*(doc_width-50);  // set position variables
            yp[i] = Math.random()*doc_height;
            am[i] = Math.random()*20;         // set amplitude variables
            stx[i] = 0.02 + Math.random()/10; // set step variables
            sty[i] = 0.7 + Math.random();     // set step variables
            if (ns4up) {                      // set layers
                    if (i == 0) {
                            document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                    } else {
                            document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                    }        } else if (ie4up||ns6up) {                if (i == 0) 
    {
                            document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                    } else {
                            document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
                    }
            }
            if (j == (snow.length-1)) { j = 0; } else { j += 1; }
    }

    function snowNS() {  // Netscape main animation function
            for (i = 0; i < no; ++ i) {  // iterate for every dot
                    yp[i] -= sty[i];                if (yp[i] < -50) {
                            xp[i] = Math.random()*(doc_width-am[i]-30);
                            yp[i] = doc_height;
                            stx[i] = 0.02 + Math.random()/10;
                            sty[i] = 0.7 + Math.random();
                            doc_width = self.innerWidth;
                            doc_height = self.innerHeight;                }
                    dx[i] += stx[i];
                    document.layers["dot"+i].top = yp[i]+pageYOffset;
                    document.layers["dot"+i].left = xp[i] + 
    am[i]*Math.sin(dx[i]);
            }
            setTimeout("snowNS()", speed);
    }

    function snowIE_NS6() {  // IE main animation function
            for (i = 0; i < no; ++ i) {  // iterate for every dot
                    yp[i] -= sty[i];
                    if (yp[i] < -50) {
                            xp[i] = Math.random()*(doc_width-am[i]-30);
                            yp[i] = doc_height;
                            stx[i] = 0.02 + Math.random()/10;
                            sty[i] = 0.7 + Math.random();
                            doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                            doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                    }
                    dx[i] += stx[i];
                    if (ie4up){
                    document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                    document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                    }
                    else if (ns6up){
                    document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                    document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                    }
            }
            setTimeout("snowIE_NS6()", speed);
    }

    if (ns4up) {
            snowNS();
    } else if (ie4up||ns6up) {
            snowIE_NS6();
    }
    // End -->
    </script>

0

41

Падающие капли воды;
Вставляем в HTML-низ:

Код:
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 25; // 
var speed = 12; // 
var snowflake = "http://forumupload.ru/uploads/0002/25/06/9243-1.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; 
var am, stx, sty; 
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {  
dx[i] = 0;         
xp[i] = Math.random()*(doc_width-50); 
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random();   
if (ns4up) {                  
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
   }
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
      }
   }
}
function snowNS() { 
for (i = 0; i < no; ++ i) {  
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { 
for (i = 0; i < no; ++ i) { 
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

0

42

Падающие листья;
Вставляем в HTML-низ:

Код:
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 25; // 
var speed = 12; // 
var snowflake = "http://forumupload.ru/uploads/0002/25/06/9242-1.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; 
var am, stx, sty; 
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {  
dx[i] = 0;         
xp[i] = Math.random()*(doc_width-50); 
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random();   
if (ns4up) {                  
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
   }
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
      }
   }
}
function snowNS() { 
for (i = 0; i < no; ++ i) {  
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { 
for (i = 0; i < no; ++ i) { 
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

0

43

Падающие анимированные губки
Вставляем в HTML-низ:

Код:
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 25; // 
var speed = 12; // 
var snowflake = "http://forumupload.ru/uploads/0002/25/06/9239-1.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp; 
var am, stx, sty; 
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {  
dx[i] = 0;         
xp[i] = Math.random()*(doc_width-50); 
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         
stx[i] = 0.02 + Math.random()/10; 
sty[i] = 0.7 + Math.random();   
if (ns4up) {                  
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
   }
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
      }
   }
}
function snowNS() { 
for (i = 0; i < no; ++ i) {  
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() { 
for (i = 0; i < no; ++ i) { 
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

0

44

Сиреневые бабочки;
Вставляем в HTML-низ:

Код:
<Style Type="Text/CSS">
<!--
.Congrats {
font-family: Impact;
font-size: 26px;
font-weight: normal;
}
.You {
font-family: Impact;
font-size: 26px;
font-weight: normal;
color: #FFFFFF;
}
.Close {
font-family: Impact;
font-size: 18px;
font-weight: normal;
}
A:Link {color:#FFE466;text-decoration: none;}
A:Visited {color:#FFE466;text-decoration: none;}
A:Active {color:#FFE466;text-decoration: none;}
A:Hover {color:#FFFFFF;text-decoration: underline;}
 -->
</Style>
<SCRIPT language=javascript>
<!--//
function right(e) {
  if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
    alert("Function disabled!");
    return false;}
  return true;}
//-->
</SCRIPT>
<Script Language="JavaScript1.2">
<!--
grphcs=new Array(5)

Image0=new Image();
Image0.src=grphcs[0]="http://forumupload.ru/uploads/0002/25/06/9238-1.gif"
Image1=new Image();
Image1.src=grphcs[1]="http://forumupload.ru/uploads/0002/25/06/9238-1.gif"
Image2=new Image();
Image2.src=grphcs[2]="http://forumupload.ru/uploads/0002/25/06/9238-1.gif"
Image3=new Image();
Image3.src=grphcs[3]="http://forumupload.ru/uploads/0002/25/06/9238-1.gif"
Image4=new Image();
Image4.src=grphcs[4]="http://forumupload.ru/uploads/0002/25/06/9238-1.gif"

Amount=20;
Ypos=new Array();
Xpos=new Array();
Zpos=new Array();
//SpeedX=new Array();
//SpeedY=new Array();
ScrXpos=new Array();
ScrYpos=new Array();
Speed=new Array();
Size=new Array();
Step=new Array();
ns=(document.layers)?1:0;
ie=document.all&&navigator.userAgent.indexOf("Opera")==-1

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>");
} //end for
} //end if
else if (ie){ //IE
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
 document.write('<img id="si'+i+'" src="'+grphcs[Math.round((i+1)*(grphcs.length-1)/Amount)]+'"style="position:absolute;top:0px;left:0px">');
}
document.write('</div></div>');
}

if (ie||ns){
WinHeight=(ns)?window.innerHeight-20:window.document.body.clientHeight;
WinWidth=(ns)?window.innerWidth-70:window.document.body.clientWidth;
for (i=0; i < Amount; i++){
  Speed[i]=(i+1)*6/Amount+4; //speed range from 4 to 10
  Xpos[i] = (Math.random()*WinWidth-WinWidth/2)*(Amount-i/3)/Amount;
  Ypos[i] = (Math.random()*WinHeight-WinHeight/2)*(Amount-i/3)/Amount;
  Zpos[i] = Math.random()*900*(Amount-i/3)/Amount+100;
}
}

function fly(){
var WinHeight=(ns)?window.innerHeight-20:window.document.body.clientHeight;
var WinWidth=(ns)?window.innerWidth-70:window.document.body.clientWidth;
var hscrll=(ns)?window.pageYOffset:document.body.scrollTop;

for (i=0; i < Amount; i++){
 Zpos[i]-=Speed[i];
 if (ScrXpos[i]>WinWidth || ScrXpos[i]<0 || ScrYpos[i]>WinHeight || ScrYpos[i]<0 || Zpos[i]<=0) {
  Speed[i]=(i+1)*6/Amount+4; //speed range from 4 to 10
  Xpos[i] = (Math.random()*WinWidth-WinWidth/2)*(Amount-i/3)/Amount;
  Ypos[i] = (Math.random()*WinHeight-WinHeight/2)*(Amount-i/3)/Amount;
  Zpos[i] = Math.random()*900*(Amount-i/3)/Amount+100;
 }
 ScrXpos[i]=Xpos[i]/Zpos[i]*100 + WinWidth/2;
 ScrYpos[i]=Ypos[i]/Zpos[i]*100 + WinHeight/2;

 if (ns){
  document.layers['sn'+i].left=ScrXpos[i];
  document.layers['sn'+i].top=ScrYpos[i]+hscrll;
 }
 else{ //IE
  eval("document.all.si"+i).style.left=ScrXpos[i];
  eval("document.all.si"+i).style.top=ScrYpos[i]+hscrll;
 }
} //end for
setTimeout('fly()',20);
} //end fly

if (ie||ns)
window.onload=fly
//-->
</Script>

0

45

Не знала, куда записать, пришла сюда.
Палитра цветов для администрирования

0

46

Дополнительные цвета на форум

Код:
<table><tr>
<td onclick="return changeVisibility('mycolor', this)"><img src="http://forum.mybb.ru/i/color_swatch.png" alt="Мои цвета" /></td></tr></table>
<div class="container" id="mycolor" style="display:none; width:200px">
	<table cellspacing="0">
<tr>
<td style="background-color:indigo" onclick="bbcode('[color=indigo]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:thistle" Height="15px" onclick="bbcode('[color=thistle]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:tomato" onclick="bbcode('[color=tomato]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:yellowgreen" onclick="bbcode('[color=yellowgreen]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:lightslategray" onclick="bbcode('[color=lightslategray]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:lightpink" onclick="bbcode('[color=lightpink]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:goldenrod" onclick="bbcode('[color=goldenrod]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:silver" onclick="bbcode('[color=silver]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:orchid" onclick="bbcode('[color=orchid]', '[/color]'); return changeVisibility('mycolor', this)"></td>
<td style="background-color:chocolate" onclick="bbcode('[color=chocolate]', '[/color]'); return changeVisibility('mycolor', this)"></td>
<td style="background-color:lavender" onclick="bbcode('[color=lavender]', '[/color]'); return changeVisibility('mycolor', this)"></td>
<td style="background-color:tan" onclick="bbcode('[color=tan]', '[/color]'); return changeVisibility('mycolor', this)"></td>
<td style="background-color:coral" onclick="bbcode('[color=coral]', '[/color]'); return changeVisibility('mycolor', this)"></td>
<td style="background-color:darkolivegreen" onclick="bbcode('[color=darkolivegreen]', '[/color]'); return changeVisibility('mycolor', this)"></td>
<td style="background-color:slateblue" onclick="bbcode('[color=slateblue]', '[/color]'); return changeVisibility('mycolor', this)"></td>
</tr>
	</table>
	</div>

0


Вы здесь » Форум технической поддержки » Новые возможности форума » Скрипты от пользователей