Page 1 of 1

Snow?

PostPosted: Sat Dec 01, 2007 3:13 pm
Author: Helter
This .script will add js snowflakes to your site. It works in both IE and Firefox. I have not tested it in other browsers.

Re: Snow?

PostPosted: Mon Dec 03, 2007 5:49 pm
Author: CaNNon
This looks really good on a dark theme! <img>

Re: Snow?

PostPosted: Tue Dec 04, 2007 7:54 pm
Author: fldodger
Yes it does look great on Dark template. I have made a new snowflake also
http://www.motomodding.us
Thanks again guys.

Re: Snow?

PostPosted: Thu Dec 06, 2007 6:42 am
Author: Michalis
Heres another PHP .script for snow

Code: Select all
 # #-----[ FIND ]------------------------------------------ # </head>  # #-----[ BEFORE, ADD ]------------------------------------------ #  <script>// Set the number of snowflakes (more than 30 - 40 not recommended)var snowmax=7  // Set the colors for the snow. Add as many colors as you likevar snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")  // Set the fonts, that create the snowflakes. Add as many fonts as you likevar snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")  // Set the letter that creates your snowflake (recommended] = 0;        lftrght[i] = Math.random()*15;        x_mv[i] = 0.03 + Math.random()/10;       snow[i]=document.getElementById("s"+i)       snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]       snow[i].size=randommaker(snowsizerange)+snowminsize       snow[i].style.fontSize=snow[i].size       snow[i].style.color=snowcolor[randommaker(snowcolor.length)]       snow[i].sink=sinkspeed*snow[i].size/5       if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}       if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}       if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}       if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}       snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)       snow[i].style.left=snow[i].posx       snow[i].style.top=snow[i].posy    }    movesnow()}  function movesnow() {    for (i=0;i<snowmax>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){          if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}          if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}          if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}          if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}          snow[i].posy=0       }    }    var timer=setTimeout("movesnow()",50)}  for (i=0;i<=snowmax;i++) {    document.write("<span>"+snowletter+"</span>")}if (browserok) {    window.onload=initsnow}</script>  ##-----[ EoM ]------------------------------------------#  

PostPosted: Tue Dec 25, 2007 4:57 pm
Author: fldodger
What do you have for New Year?

Re: Snow?

PostPosted: Wed Dec 26, 2007 12:11 pm
Author: CaNNon
I thought i saw a fireworks graphic that you could swap for the snow flake pic (for use with the original .script), but i have not been able to find it again.
So if anyone sees one I would like a link too! <img>

PostPosted: Fri Dec 28, 2007 1:50 pm
Author: fldodger
I made some Confetti.

Check it out. Link is in above post.

Re: Snow?

PostPosted: Fri Dec 28, 2007 6:13 pm
Author: CaNNon
Looks good, you going to share? :wink: <img>

PostPosted: Fri Jan 25, 2008 5:26 pm
Author: fldodger
Sorry I missed this Post. <img>
Please forgive me. I will post the images next time through.

Re: Snow?

PostPosted: Sat Jan 26, 2008 11:01 am
Author: CaNNon
Errrrr.... I was joking about taking it to use for new years, I hope you didn't mind.
I think it should be added to the down load it's a nice little touch for new years and a very easy to edit to change displayed files.

Re: Snow?

PostPosted: Sat Jan 26, 2008 12:20 pm
Author: fldodger
Here you go.
Just upload image and it will replace the snow.
[img=left:upkyh1q6]http://i129.photobucket.com/albums/p212/fldodger1/others/snow.gif[/img]

Re: Snow?

PostPosted: Mon Dec 15, 2008 7:05 pm
Author: Lycanth
Um, sorry, code newbie here...is there any way to slow down the snow?

Re: Snow?

PostPosted: Mon Dec 15, 2008 8:04 pm
Author: Helter
at the beginning of most of the scripts there will be a speed setting and explanation

Re: Snow?

PostPosted: Fri Feb 13, 2009 4:06 pm
Author: Lycanth
Sorry, one more question. Is there any way to make it so several different images are randomly chosen from?

Hoping to use it for easter eggs when easter is upon us and would love to have different kinds of eggs falling.

Re: Snow?

PostPosted: Fri Feb 13, 2009 6:19 pm
Author: Helter
check http://www.dynamicdrive.com/ for something like that