Официальный Форум технической поддержки ForumBB

Объявление


С 15.02.2017 прекращается техническая поддержка по ICQ, она будет осуществлятся только на данном форуме и по электронной почте help@forumbb.ru.

Для удобного поиска работает - «Поиск по форуму».
При возникшей проблеме Обязательно указывайте адрес форума!


Вопросы по рекламе на ForumBB: E-mail: sales@forumbb.ru, ICQ: 1-130-134, skype: alex_derenchuk.
По всем остальным вопросам, пишите: E-mail: admin@forumbb.ru, ICQ: 1-130-134.

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

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



помогите плыз

Сообщений 1 страница 3 из 3

1

помогите как сделать на форуме снежинки

0

2

kornelia написал(а):

помогите как сделать на форуме снежинки

вот этот код вставляй в html верх

Код:
<html>
<head>
<title>Падающий снег с возможностья выбора пользователем его количества</title>
</head>
<body onload="if (document.all||document.layers) {start()}" onResize=location.reload()>
<CENTER>
<SCRIPT>
<!--     
count = 20;
speed = 1;
snowfall = true;
function start() {
if (document.all) {     // IExplorer
  yMax = document.body.clientHeight;
  xMax = document.body.clientWidth;
  }
else if (document.layers) {     // Netscape
  yMax = window.innerHeight;
  xMax = window.innerWidth;
  }
xachse = new Array();
for(i = 1; i <=40; i++)  {
 x = 10000;
 do
 { x = Math.round(Math.random() * 10000);  } 
 while(x > xMax-50);
 xachse[i] = x;
};
yachse = new Array();
for(i = 1; i <=40; i++)  { yachse[i] = - Math.round(Math.random() * 1000); };
show();
movesnow(); }
function movesnow() {
if (snowfall) {
for(i = 1; i <=count; i++)
  { 
  wind = Math.round(Math.random() * 10); // horizontale Bewegung
 if (wind == 2) {
  if (document.all) {  document.all("snow"+i).style.left = xachse[i] + wind; }
  else if (document.layers) { document.layers['snow' + i].left = xachse[i] + wind;       }
 }
 if (wind == 1) {
 if (document.all) {  document.all("snow"+i).style.left = xachse[i] - wind; }
 else if (document.layers) { document.layers['snow' + i].left = xachse[i] - wind;       }
  }
if (document.all) {       if (yachse[i] >= yMax-50+document.body.scrollTop) { yachse[i] = - Math.round(Math.random() * 1000); }; }
else if (document.layers) {      if (yachse[i] >= yMax-50+pageYOffset) { yachse[i] = - Math.round(Math.random() * 1000); };     }
if ( count >= 30 ) { yachse[i] = yachse[i] + speed + 1;  }
else  { yachse[i] = yachse[i] + speed;  };
if (document.all) {      document.all("snow"+i).style.top = yachse[i]; }
else if (document.layers) {     document.layers['snow' + i].top = yachse[i];      }
 }
setTimeout('movesnow()',10);
}
}
function hide(){
for(i = 1; i <=count; i++)
  { 
  if (document.all) {  document.all("snow"+i).style.visibility = "hidden"; }
  else if (document.layers) { document.layers['snow' + i].visibility = "hide";       }
  }
  }
function show(){
for(i = 1; i <=count; i++)
  { 
  if (document.all) {  document.all("snow"+i).style.visibility = "visible"; }
  else if (document.layers) { document.layers['snow' + i].visibility = "show";       }
  }
  }
//-->  
</script>
<div id='snow1' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow2' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow3' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow4' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow5' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow6' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow7' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow8' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow9' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow10' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow11' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow12' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow13' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow14' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow15' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow16' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow17' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow18' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow19' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow20' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow21' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow22' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow23' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow24' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow25' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow26' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow27' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow28' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow29' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow30' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow31' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow32' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow33' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow34' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow35' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow36' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow37' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow38' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow39' style='position:absolute; z-index:3; font-size:20pt; color:#FFFFFF; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
<div id='snow40' style='position:absolute; z-index:3; font-size:20pt; color:#99ffff; font-family:Times New Roman, Helvetica; visibility:hidden; width:20'>*</div>
С Новым Годом...<br>
</select>
</form>
</center>
</body>
</html>

0

3

kornelia написал(а):

помогите как сделать на форуме снежинки

Это не снежинки, но тоже полезно, эффект космоса!

<html>
<head>
<title>Космический эффект</title>
</head>
<body bgcolor="#000000" text="#000000">
<script language="JavaScript">
<!--
if (document.all)
  {
   L=20;
   H=0;
   W=0;
   R=0;
   E=0;
   MY=0;
   MX=0;
   Wd=0;
   Hd=0;

   F=new Array();
   Y=new Array();
   X=new Array();
   S=new Array();
   A=new Array();
   B=new Array();

   document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
   for (i=0; i < L; i++)
    document.write('<div id="ie" style="position:absolute;top:0;left:0;width:10px;height:10px;'
    +'font-family:Courier New;font-size:50px;color:#ffffff">.</div>');
   document.write('</div></div>');

  function Set()
   {
    for (i=0; i < L; i++)
{
      H=window.document.body.offsetHeight;
      W=window.document.body.offsetWidth;
      A[i]=Math.round(Math.random()*H);
      B[i]=Math.round(Math.random()*W);
      S[i]=Math.random()*0.07+0.05;
      R=Math.round(Math.random()*3);
      E=Math.round(Math.random()*2500+50)
      if (R == 3) B[i]=-E;
      if (R == 2) B[i]=W+E;
      if (R == 1) A[i]=-E;
      if (R == 0) A[i]=H;
      F[i]=W/14;
     }
   }
  Set();

  function Assign()
   {
    outer.style.top=document.body.scrollTop;
    for (i=0; i < L; i++)
{
      F[i]-=S[i]*35;
      if (F[i] < 4) F[i]=3;
      ie[i].style.top =Y[i];
      ie[i].style.left=X[i];
      ie[i].style.fontSize=F[i];
     }
    }

  function fly()
   {
    MY=window.document.body.clientHeight/2;
    MX=window.document.body.clientWidth/2;
    Wd=Math.round(Math.random()*40+5);
    Hd=Math.round(Math.random()*30+5);
    for (i=0; i < L; i++)
     {
      Y[i]=A[i]+=(MY-A[i])*(S[i]);
      X[i]=B[i]+=(MX-B[i])*(S[i]);
      if ((X[i] > MX-Wd) && (X[i] < MX+Wd) && (Y[i] > MY-Hd) && (Y[i] < MY+Hd))
   {
        H=window.document.body.offsetHeight;
        W=window.document.body.offsetWidth;
        A[i]=Math.round(Math.random()*H);
        B[i]=Math.round(Math.random()*W);
        S[i]=Math.random()*0.05+0.05;
        R=Math.round(Math.random()*3);
        E=Math.round(Math.random()*50+50)
        if (R == 3) B[i]=-E;
        if (R == 2) B[i]=W+E;
        if (R == 1) A[i]=-E;
        if (R == 0) A[i]=H+E;
       }
      if ((X[i] < 0) || (X[i] > W) || (Y[i] < 0) || (Y[i] > H))
      F[i]=W/14;
     }
   Assign();
   setTimeout('fly()',20);
   }
  window.onload=fly;
}
// -->
</script>
</body></html>

0