Jump to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Снег на форуме ipb3.0

будте добры не подскажете где можно найти скрипт или что то в этом роде чтобы падал снег на форуме желаетльно с иснструкцие по установке

Featured Replies

Наверное подойдет любой скрипт с падением снега (их десятки).

Найдите в яндексе, потом впишите в Глобальные > globalTemplate согласно инструкции для выбранного скрипта.

  • 2 weeks later...

Взял скрипт ОТСЮДА (последний)

Но возникла проблемка- снег "работает" в Опере, IE,Сафари, но в Мозиле отказывается.

В левом верхнем углу отражается одна снежинка, а движения нет.

Кто нибудь может подсказать решение?

 

Скрипт ставил в Глобальные > globalTemplate после body id='ipboard_body'

Edited by Prizrak

  • 2 years later...

Появился вопрос. Как в этом скрипте:

<script language="javascript" type="text/javascript">
<!--
Amount = 100;

Image0 = new Image();
Image0.src = "http://szenprogs.ru/images/snow/snow1.gif";

grphcs = new Array(1);
grphcs[0] = "http://szenprogs.ru/images/snow/snow1.gif";

Ypos = new Array();
Xpos = new Array();
Speed = new Array();
Step = new Array();
Cstep = new Array();
var YPosA;
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><a http://szenprogs.ru/blog/2009-05-06-41><img src="+rndPic+"><\/a><\/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'+i+'" src="'+rndPic+'" style="position:absolute; top:0px; left:0px; width:20px; height:20px;">');
 }
 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;
 Step[i] = Math.random()*0.1+0.05;
}
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;
   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 {
     document.getElementById('si'+i).style.left = Xpos[i]+'px';
     YPosA=Ypos[i]+hscrll;
     document.getElementById('si'+i).style.top = YPosA+'px';
   }
   Cstep[i] += Step[i];
 }
 setTimeout('fall()',10);
}
fall();
//-->
</script>

 

Изменить траекторию падения снега, т.е. распределить ровно по бокам шаблона форума (словно бегущая снежная строка). Это касается не только снега, картинки можно менять на свое усмотрение. Очень прошу помочь в этом вопросе.

Прописать z-index:-100; сюда

 

} else {
 document.write('<div style="position:absolute;top:0px;left:0px;z-index:-100;"><div style="position:relative">');
 for (i = 0; i < Amount; i++) {

 

тоже не помогает((

Edited by Daria_WEB

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.