The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How do I add falling snow?

+19
Liquid
ken
-=BleSsEd_GuY=-
Lady Lara
Glad E Olah
dmicou
Junior-B
geosep
gandakotalaga
minal
Cherry Blossom
CANADIEN
PetsPalace
Kryptonist
frontier gander
fotis01
Gunhack X
Rok
sticky buns
23 posters

Page 1 of 2 1, 2  Next

Go down

How do I add falling snow? Empty How do I add falling snow?

Post by sticky buns November 28th 2008, 8:25 pm

Hi,

I would like for my forum to look more festive. Does anyone know how to add falling snow?.

(I'm using the PhpBB2 version.).

Thank you......
avatar
sticky buns
New Member

Female Posts : 6
Reputation : 0
Language : English

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Rok November 28th 2008, 8:42 pm

What you do is get the code for the falling snow, or any falling affect from any site (like from Pyzam.com), then embed the code in your site description.

To embed the code into the site description :


Admin Panel >

General tab >

Forum -- Configuration>

Then just simply embed the code for the falling affects into the site description, then Save
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Gunhack X November 28th 2008, 9:24 pm

Ok, here it is.

First, go to: (This is in Advanced Mode, If you are in Simple change it)
Administration Panel > Display > Templates > General > overall_header_new

Open it and add this code at the beginning of the page and then preview it (Clicking this image How do I add falling snow? New_window_black) . If you like it publish it (Clicking this icon How do I add falling snow? Ajouter) .

Code:
<script type="text/javascript">

/******************************************
* Snow Effect script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/
 
var snowsrc="http://i71.servimg.com/u/f71/12/41/10/67/snow10.gif"
var no = 10;
var hidesnowtime = 0;
var snowdistance = "windowheight";

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest()
{
  return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600;
 
if (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();

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 (ie4up||ns6up)
  {
      if (i == 0)
      {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
      }
      else
      {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
      }
  }
}

function snowIE_NS6()
{
  doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
  doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
  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();
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top=yp[i]+"px";
      document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px"; 
  }
  snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow()
{
  if (window.snowtimer) clearTimeout(snowtimer)
      for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
      

if (ie4up||ns6up)
{
  snowIE_NS6();
  if (hidesnowtime>0)
      setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>
Gunhack X
Gunhack X
Forumember

Male Posts : 479
Reputation : 14
Language : English, Español
Location : USA

http://windows.topgoo.net

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by sticky buns November 28th 2008, 11:13 pm

rokstrsk83rdude wrote:What you do is get the code for the falling snow, or any falling affect from any site (like from Pyzam.com), then embed the code in your site description.

To embed the code into the site description :


Admin Panel >

General tab >

Forum -- Configuration>

Then just simply embed the code for the falling affects into the site description, then Save

Thanks very much for your reply. I'll have a go right now!.. :wouhou:
avatar
sticky buns
New Member

Female Posts : 6
Reputation : 0
Language : English

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by sticky buns November 28th 2008, 11:17 pm

Gunhack X wrote:Ok, here it is.

First, go to: (This is in Advanced Mode, If you are in Simple change it)
Administration Panel > Display > Templates > General > overall_header_new

Open it and add this code at the beginning of the page and then preview it (Clicking this image How do I add falling snow? New_window_black) . If you like it publish it (Clicking this icon How do I add falling snow? Ajouter) .

Code:
<script type="text/javascript">

/******************************************
* Snow Effect script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/
 
var snowsrc="http://i71.servimg.com/u/f71/12/41/10/67/snow10.gif"
var no = 10;
var hidesnowtime = 0;
var snowdistance = "windowheight";

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest()
{
  return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600;
 
if (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();

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 (ie4up||ns6up)
  {
      if (i == 0)
      {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
      }
      else
      {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
      }
  }
}

function snowIE_NS6()
{
  doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
  doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
  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();
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top=yp[i]+"px";
      document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px"; 
  }
  snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow()
{
  if (window.snowtimer) clearTimeout(snowtimer)
      for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
      

if (ie4up||ns6up)
{
  snowIE_NS6();
  if (hidesnowtime>0)
      setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>

Hi, thanks very much for your help... Laughing I'm still learning the ropes!..
avatar
sticky buns
New Member

Female Posts : 6
Reputation : 0
Language : English

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Gunhack X November 28th 2008, 11:25 pm

Your Welcome!
Gunhack X
Gunhack X
Forumember

Male Posts : 479
Reputation : 14
Language : English, Español
Location : USA

http://windows.topgoo.net

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by fotis01 November 29th 2008, 7:06 pm

Gunhack X wrote:Ok, here it is.

First, go to: (This is in Advanced Mode, If you are in Simple change it)
Administration Panel > Display > Templates > General > overall_header_new

Open it and add this code at the beginning of the page and then preview it (Clicking this image How do I add falling snow? New_window_black) . If you like it publish it (Clicking this icon How do I add falling snow? Ajouter) .

Code:
<script type="text/javascript">

/******************************************
* Snow Effect script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code lib

rary (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/
 
var snowsrc="http://i71.servimg.com/u/f71/12/41/10/67/snow10.gif"
var no = 10;
var hidesnowtime = 0;
var snowdistance = "windowheight";

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest()
{
  return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600;
 
if (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();

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 (ie4up||ns6up)
  {
      if (i == 0)
      {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
      }
      else
      {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
      }
  }
}

function snowIE_NS6()
{
  doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
  doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
  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();
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top=yp[i]+"px";
      document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px"; 
  }
  snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow()
{
  if (window.snowtimer) clearTimeout(snowtimer)
      for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
      

if (ie4up||ns6up)
{
  snowIE_NS6();
  if (hidesnowtime>0)
      setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>

thanks, i also needed this Very Happy
but it falls until around thee 1/4 of the page, then it dissapears.. what can I do?
avatar
fotis01
Forumember

Posts : 26
Reputation : 0
Language : Greek

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by frontier gander November 29th 2008, 8:03 pm

i'll thank u guys too, ive always wondered how to do that
frontier gander
frontier gander
Forumember

Male Posts : 160
Reputation : 1
Language : english

http://www.FrontierMuzzleloading.com

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Kryptonist November 29th 2008, 8:10 pm

I'm using the phpBB3 version. But, I can't do it. Please help me Smile

Thanks!
avatar
Kryptonist
Forumember

Posts : 62
Reputation : 0
Language : English

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by PetsPalace November 29th 2008, 8:23 pm

Kryptonist wrote:I'm using the phpBB3 version. But, I can't do it. Please help me Smile

Thanks!

same prob here Crying or Very sad
PetsPalace
PetsPalace
New Member

Female Posts : 24
Reputation : 0
Language : english

http://petspalace.forumotions.net/

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by CANADIEN November 29th 2008, 8:35 pm

Can't do what?
You must pay to edit the templates with phpbb3, punbb, and invision.
It's only free for phpbb2 forum.
CANADIEN
CANADIEN
Active Poster

Male Posts : 1312
Reputation : 33
Language : English, French

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Kryptonist November 29th 2008, 8:38 pm

CANADIEN wrote:Can't do what?
You must pay to edit the templates with phpbb3, punbb, and invision.
It's only free for phpbb2 forum.

I don't know. How?
avatar
Kryptonist
Forumember

Posts : 62
Reputation : 0
Language : English

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Cherry Blossom November 29th 2008, 8:39 pm

Add it to the welcome message
Cherry Blossom
Cherry Blossom
Forumember

Female Posts : 996
Reputation : 23
Language : English

http://cherrydesigns.forumotion.net/

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by minal November 29th 2008, 11:53 pm

fotis01 wrote:thanks, i also needed this
but it falls until around thee 1/4 of the page, then it dissapears.. what can I do?

Look at the original code. Do you see the part with the ******** ?
After the section with the **** -text here- ***** You'll see:

Code:
var snowsrc="http://i71.servimg.com/u/f71/12/41/10/67/snow10.gif"
var no = 10;
var hidesnowtime = 0;
var snowdistance = "windowheight";

Change the part that says windowheight to pageheight and it will go all the way down
minal
minal
Forumember

Female Posts : 25
Reputation : 10
Language : English

http://roaring-rainbows.darkbb.com

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Gunhack X November 30th 2008, 3:13 am

PetsPalace wrote:
Kryptonist wrote:I'm using the phpBB3 version. But, I can't do it. Please help me Smile

Thanks!

same prob here Crying or Very sad
What you can do is add this code into your Welcome Message in Generalities.
Gunhack X
Gunhack X
Forumember

Male Posts : 479
Reputation : 14
Language : English, Español
Location : USA

http://windows.topgoo.net

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by gandakotalaga November 30th 2008, 4:04 am

is it possible to appear only in portal?
gandakotalaga
gandakotalaga
Forumember

Female Posts : 113
Reputation : 0
Language : english

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by geosep November 30th 2008, 11:45 am

And about phpbb3?
Where we have to add this code?
avatar
geosep
Forumember

Male Posts : 111
Reputation : 0
Language : Greek

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by PetsPalace November 30th 2008, 12:56 pm

Gunhack X wrote:
PetsPalace wrote:
Kryptonist wrote:I'm using the phpBB3 version. But, I can't do it. Please help me Smile

Thanks!

same prob here Crying or Very sad
What you can do is add this code into your Welcome Message in Generalities.

:wouhou: thnx its worked :wouhou:
PetsPalace
PetsPalace
New Member

Female Posts : 24
Reputation : 0
Language : english

http://petspalace.forumotions.net/

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Junior-B November 30th 2008, 2:42 pm

PetsPalace wrote:
Gunhack X wrote:
PetsPalace wrote:
Kryptonist wrote:I'm using the phpBB3 version. But, I can't do it. Please help me Smile

Thanks!

same prob here Crying or Very sad
What you can do is add this code into your Welcome Message in Generalities.

:wouhou: thnx its worked :wouhou:

Doesn't work for me... Crying or Very sad
Junior-B
Junior-B
Forumember

Male Posts : 215
Reputation : 10
Language : Greek, English, German

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by dmicou December 2nd 2008, 2:37 am

Worked for me too! :wouhou:
avatar
dmicou
New Member

Male Posts : 4
Reputation : 0
Language : english

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by frontier gander December 2nd 2008, 3:36 am

works for me but my members can not see the snow today scratch
frontier gander
frontier gander
Forumember

Male Posts : 160
Reputation : 1
Language : english

http://www.FrontierMuzzleloading.com

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Junior-B December 2nd 2008, 1:31 pm

Made it work !!
Junior-B
Junior-B
Forumember

Male Posts : 215
Reputation : 10
Language : Greek, English, German

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Glad E Olah December 3rd 2008, 3:58 am

You are wonderful! The snow looks great! Thank you soooooooooooooo much!
Glad E Olah
Glad E Olah
Forumember

Female Posts : 216
Reputation : -1
Language : English
Location : MO USA

http://shoutaroundtheworld.forumotion.com/index.htm

Back to top Go down

How do I add falling snow? Empty snowflack

Post by Lady Lara December 9th 2008, 12:23 pm

Hi,

I use phpBB3 version and the code is visabel in the front page of the forum, bur no snow is falling.

Please, for those that works, give the sollution.

thanks
Lady Lara
Lady Lara
New Member

Female Posts : 3
Reputation : 0
Language : English, Portuguese

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by -=BleSsEd_GuY=- December 9th 2008, 2:09 pm

for forums
paste the code in
admin cp>>>>display>>>generalities>>>welcome message
avatar
-=BleSsEd_GuY=-
Forumember

Posts : 183
Reputation : 0
Language : English

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Lady Lara December 9th 2008, 3:15 pm

-=BleSsEd_GuY=- wrote:for forums
paste the code in
admin cp>>>>display>>>generalities>>>welcome message

I've done that and thas not work, what we see is the code it self

scratch

I've change the forum to phpBB2, and add the code to Templates > General > overall_header_new, and dont work.

TT


Last edited by Lady Lara on December 9th 2008, 3:18 pm; edited 1 time in total (Reason for editing : adding info)
Lady Lara
Lady Lara
New Member

Female Posts : 3
Reputation : 0
Language : English, Portuguese

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by ken December 9th 2008, 3:51 pm

Lady Lara wrote:
-=BleSsEd_GuY=- wrote:for forums
paste the code in
admin cp>>>>display>>>generalities>>>welcome message

I've done that and thas not work, what we see is the code it self

scratch

I've change the forum to phpBB2, and add the code to Templates > General > overall_header_new, and dont work.

TT

easy way to add snow is put the code in a widget, it works fine for me i have even added some festive music, and with it being in a widget it allows you to set the permission to guest only, this means you will have snow falling down your page but when someone logs in it stops and so does any music Wink give it a go
avatar
ken
Forumember

Posts : 135
Reputation : 0
Language : english

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Lady Lara December 9th 2008, 6:39 pm

Ok,

It's working, :wouhou:

Thanks to all.
Lady Lara
Lady Lara
New Member

Female Posts : 3
Reputation : 0
Language : English, Portuguese

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Liquid December 10th 2008, 11:42 pm

I need help. The snow is falling without any pictures of snow, just box's. Help?
avatar
Liquid
Forumember

Posts : 29
Reputation : 0
Language : English

Back to top Go down

How do I add falling snow? Empty Re: How do I add falling snow?

Post by Dragon Princ December 11th 2008, 10:52 am

How can I add it just on first forum page??
Dragon Princ
Dragon Princ
New Member

Male Posts : 10
Reputation : 0
Language : Slovenian

http://rpg-potter.forumotion.com/forum.htm

Back to top Go down

Page 1 of 2 1, 2  Next

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum