New Snow Effect Code (Very Good)
+12
ClubpenguinRox!
blogger
lax
Xx Navek xX
anni
Charlotte Spiral
Sweetheart1
crystal786
CharlieFSA
Rok
kirk
***mahmut***
16 posters
Page 1 of 1
New Snow Effect Code (Very Good)
New Snow Effect Code
Snow Number of code: var no =40;
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>
Re: New Snow Effect Code (Very Good)
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/
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- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: New Snow Effect Code (Very Good)
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?
Anyway, I have three flowing now too!
Thanks for the code, but why is this thread in the "Other Problems" category?
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: New Snow Effect Code (Very Good)
Display>>Homepage>>Generalities
Put the code into your homepage message.
Put the code into your homepage message.
Re: New Snow Effect Code (Very Good)
how good? does anyone has any example that I can see?
Charlotte Spiral- Forumember
- 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. :(
Re: New Snow Effect Code (Very Good)
Does anyone has another codes for snowflakes
anni- Forumember
- Posts : 45
Reputation : 0
Language : slovenia
Re: New Snow Effect Code (Very Good)
***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>
well... what a great help youve helped pimp up my forum thanks alot
Navek
Xx Navek xX- New Member
- Posts : 7
Reputation : 1
Language : English
Re: New Snow Effect Code (Very Good)
where to put it???
blogger- Forumember
- Posts : 366
Reputation : 0
Language : English, webkinz, beepish, baby talk, and tech
Location : WONDER-LAND!!! XD
Re: New Snow Effect Code (Very Good)
I Dont understand can you put it in my forum?
ClubpenguinRox!- Forumember
- Posts : 47
Reputation : 0
Language : english
Re: New Snow Effect Code (Very Good)
Sweetheart1 wrote:Display>>Homepage>>Generalities
Put the code into your homepage message.
follow that
Mehtevas- Hyperactive
- 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
ClubpenguinRox!- Forumember
- Posts : 47
Reputation : 0
Language : english
Re: New Snow Effect Code (Very Good)
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?
antant82- New Member
- Posts : 3
Reputation : 0
Language : english
Re: New Snow Effect Code (Very Good)
Iv'e seen this before,can't wait for winter!
Suecra- Forumember
- Posts : 94
Reputation : 0
Language : English
Re: New Snow Effect Code (Very Good)
solution, please...anyone? The snow effect won't load in IE.
antant82- New Member
- Posts : 3
Reputation : 0
Language : english
Re: New Snow Effect Code (Very Good)
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
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
antant82- New Member
- Posts : 3
Reputation : 0
Language : english
Re: New Snow Effect Code (Very Good)
that is TOO COOL!
MysticDreamer31- Forumember
- Posts : 63
Reputation : 0
Language : english
Similar topics
» I need snow effect for forum but i need script where i can put my jpg. snow flakes.
» The snow effect
» Snow effect
» May be useful for someone
» Snow effect for forums...again
» The snow effect
» Snow effect
» May be useful for someone
» Snow effect for forums...again
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum