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.

New Snow Effect Code (Very Good)

+12
ClubpenguinRox!
blogger
lax
Xx Navek xX
anni
Charlotte Spiral
Sweetheart1
crystal786
CharlieFSA
Rok
kirk
***mahmut***
16 posters

Go down

snow - New Snow Effect Code (Very Good) Empty New Snow Effect Code (Very Good)

Post by ***mahmut*** December 20th 2008, 11:56 am

New Snow Effect Code

Snow Number of code: var no =40;

Code:

<script>

 //Here you can add your own picture for snow. Just change the url
var snowsrc="http://i13.servimg.com/u/f13/11/52/70/02/snowba10.png"
//how many snowflakes there will be (currently 12)
var no =40;
//How fast will the snow disappear (0 is never)
var hidesnowtime = 0;
//The height the snow will reach before it disappears ("windowheight" or "pageheight")
var snowdistance = "pageheight";
///////////////////////////////End of Settings///////////////////////////////////
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://rftactical.darkbb.com/index.htm\"><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>
:wouhou: :wouhou: Razz
***mahmut***
***mahmut***
New Member

Male Posts : 22
Reputation : 0
Language : Turkish

http://bilge.forum.st

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by kirk December 20th 2008, 4:02 pm

thanks now i have three codes going at once.
it's a blizzard effect... lol
happy holidays and thank you for sharing with us all.

heres a lil something back at ya.
<div style='background-color:#e9e9e9; width: 425px;'><object id='A777576' quality='high' data='http://aka.zero.jibjab.com/client/zero/ClientZero_EmbedViewer.swf?external_make_id=fnv8PZFNLPyfmWz3&service=sendables.jibjab.com&partnerID=ElfYourself' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent' height='319' width='425'><param name='wmode' value='transparent'></param><param name='movie' value='http://aka.zero.jibjab.com/client/zero/ClientZero_EmbedViewer.swf?external_make_id=fnv8PZFNLPyfmWz3&service=sendables.jibjab.com&partnerID=ElfYourself'></param><param name='scaleMode' value='showAll'></param><param name='quality' value='high'></param><param name='allowNetworking' value='all'></param><param name='allowFullScreen' value='true' /><param name='FlashVars' value='external_make_id=fnv8PZFNLPyfmWz3&service=sendables.jibjab.com&partnerID=ElfYourself'></param><param name='allowscriptAccess' value='always'></param></object><div style='text-align:center; width:435px; margin-top:6px;'>Send your own <a href='http://www.elfyourself.com'>ElfYourself</a> <a href='http://sendables.jibjab.com/ecards'>eCards</a></div></div><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyMjk3ODgzMzMwNTEmcHQ9MTIyOTc4ODMzNTk*OCZwPTQxODgxMyZkPTIwMjY3MSZnPTImdD*mbz1mNGIxZGU4YjE4NTc*MWM4YWE4OGQ*ZTIzNzJiYWJjNQ==.gif" />

here's the link if you and all members would like to make one .
you can do up to five people with 5 different dances to chose from.
you can embed or email to friends or family as a Christmas's email card too.
http://www.elfyourself.com/
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by Rok December 20th 2008, 9:20 pm

Lol, Kirk. My friends showed me that Thursday!
Anyway, I have three flowing now too!
Thanks for the code, but why is this thread in the "Other Problems" category?
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by ***mahmut*** December 21st 2008, 7:51 pm

oh sorry Smile mod please
***mahmut***
***mahmut***
New Member

Male Posts : 22
Reputation : 0
Language : Turkish

http://bilge.forum.st

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by CharlieFSA December 26th 2008, 2:03 pm

Where to put that code ?
avatar
CharlieFSA
Forumember

Male Posts : 185
Reputation : 0
Language : Serbian

http://balkanbloodsugarsexm.coolbb.net/

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by CharlieFSA December 26th 2008, 2:33 pm

where to put that blizard code for snow ?
avatar
CharlieFSA
Forumember

Male Posts : 185
Reputation : 0
Language : Serbian

http://balkanbloodsugarsexm.coolbb.net/

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by crystal786 December 26th 2008, 3:20 pm

Where do we put that code?
crystal786
crystal786
Forumember

Female Posts : 924
Reputation : 12
Language : English
Location : England

http://www.thesocialgalaxy.com/

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by Sweetheart1 December 27th 2008, 5:29 am

Display>>Homepage>>Generalities

Put the code into your homepage message.
Sweetheart1
Sweetheart1
Forumember

Female Posts : 146
Reputation : 1
Language : English
Location : Australia

http://copyrightcorner.aforumfree.com/forum.htm

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by Charlotte Spiral December 27th 2008, 5:39 am

how good? does anyone has any example that I can see?
Charlotte Spiral
Charlotte Spiral
Forumember

Female Posts : 89
Reputation : 0
Language : Wesołych Świąt i Szczęśliwego Nowego Roku!
Location : soon? i don't know. i'm lazy. and i'm also going for vacation for a month. hate me all you want. :(

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by ***mahmut*** December 27th 2008, 8:53 am

example : my profile visit web site
***mahmut***
***mahmut***
New Member

Male Posts : 22
Reputation : 0
Language : Turkish

http://bilge.forum.st

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by anni December 27th 2008, 11:03 am

Does anyone has another codes for snowflakes ))
anni
anni
Forumember

Female Posts : 45
Reputation : 0
Language : slovenia

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by Xx Navek xX May 17th 2009, 5:40 pm

***mahmut*** wrote:New Snow Effect Code

Snow Number of code: var no =40;

Code:

<script>

 //Here you can add your own picture for snow. Just change the url
var snowsrc="http://i13.servimg.com/u/f13/11/52/70/02/snowba10.png"
//how many snowflakes there will be (currently 12)
var no =40;
//How fast will the snow disappear (0 is never)
var hidesnowtime = 0;
//The height the snow will reach before it disappears ("windowheight" or "pageheight")
var snowdistance = "pageheight";
///////////////////////////////End of Settings///////////////////////////////////
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://rftactical.darkbb.com/index.htm\"><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>
:wouhou: :wouhou: Razz


well... what a great help youve helped pimp up my forum Smile thanks alot
Navek
avatar
Xx Navek xX
New Member

Posts : 7
Reputation : 1
Language : English

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by lax May 17th 2009, 6:24 pm

CooooL!!!! I can't wait for the winter to come now! rock rock rock
lax
lax
Forumember

Male Posts : 78
Reputation : 0
Language : Serbian, English, French and German

http://laxhosting.iz.rs

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by blogger August 7th 2009, 11:59 pm

where to put it???
avatar
blogger
Forumember

Female Posts : 366
Reputation : 0
Language : English, webkinz, beepish, baby talk, and tech
Location : WONDER-LAND!!! XD

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by ClubpenguinRox! August 8th 2009, 12:46 am

I Dont understand can you put it in my forum?
avatar
ClubpenguinRox!
Forumember

Posts : 47
Reputation : 0
Language : english

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by Mehtevas August 8th 2009, 1:35 am

Sweetheart1 wrote:Display>>Homepage>>Generalities

Put the code into your homepage message.

follow that Wink
Mehtevas
Mehtevas
Hyperactive

Male Posts : 2114
Reputation : 14
Language : Currently, I am receiving support requests by P.M. Support requests, which can, and should, be done in the support section.
Location : Oregon, USA

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by ClubpenguinRox! August 9th 2009, 6:45 pm

Please Join my forum and put it in because i cannot:

www.Clubpenguinstadium.forumotion.com
avatar
ClubpenguinRox!
Forumember

Posts : 47
Reputation : 0
Language : english

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by antant82 November 11th 2009, 3:54 am

How come when i tried to load it in IE, it won't load. I have no problems for other browsers though. How can this problem be fixed?
avatar
antant82
New Member

Posts : 3
Reputation : 0
Language : english

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by Suecra November 11th 2009, 4:00 am

Iv'e seen this before,can't wait for winter!
Suecra
Suecra
Forumember

Posts : 94
Reputation : 0
Language : English

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by antant82 November 11th 2009, 4:06 am

solution, please...anyone? The snow effect won't load in IE.
avatar
antant82
New Member

Posts : 3
Reputation : 0
Language : english

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by antant82 November 11th 2009, 4:12 am

It says Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; IEMB3; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; IEMB3)
Timestamp: Wed, 11 Nov 2009 03:10:17 UTC


Message: Object required
Line: 71
Char: 3
Code: 0
avatar
antant82
New Member

Posts : 3
Reputation : 0
Language : english

Back to top Go down

snow - New Snow Effect Code (Very Good) Empty Re: New Snow Effect Code (Very Good)

Post by MysticDreamer31 November 11th 2009, 7:37 am

that is TOO COOL! snow - New Snow Effect Code (Very Good) 631118
avatar
MysticDreamer31
Forumember

Female Posts : 63
Reputation : 0
Language : english

Back to top Go down

Back to top

- Similar topics

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