View Full Version : Snow for Christmas
Ev!L ErN!E
11-25-2006, 10:00 PM
Snow For Christmas
(not supported)
This is a VERY simple addon that will give the effect of snow falling on your forums, its great for the holiday season, and makes it an easy way to give your forum that holiday feel without doing a bunch of editing or theme changes.
Step 1. Download the attached snow.zip (unpack it) and upload the snow.js to your forums root
(you can also edit the snow.js to change, speed & amount of snow that falls)
Step 2. Go to ADMIN > STYLE MANGER > your style > HEADER
In the "header" box add this code:
<!-- Start Snow For Christmas Code -->
<script type="text/javascript" src="snow.js"></script>
<!-- End Snow For Christmas Code -->
(this will make it snow on all areas of your forum)
If you only want the snow effect to be seen on the main page of your forum then do Step 3 instead of Step 2
Step 3. Go to your styles "FORUMHOME" and add the above code just under the "<head>"
This has only been tested on 3.6.2 using IE6
To stop this effect after the holidays, simply comment out the script code like this:
<!-- Start Snow For Christmas Code -->
<!-- <script type="text/javascript" src="snow.js"></script> -->
<!-- End Snow For Christmas Code -->
DEMO
View a demo here (http://www.clanevilinc.com/forums/index.php?styleid=3)
(this demo is using STEP 3, snow only on the FORUMHOME)
Please Click INSTALL
TheBlackPoet
11-25-2006, 11:26 PM
*maniacal laughing*.... I will impress them all!!!!!! *maniacal laughing continues*
rezapci
11-26-2006, 01:01 AM
works on firefox 1.5.0.8
thank you
jcfuller
11-26-2006, 02:13 AM
cool :up:
Does anyone know how to make it show on the vBadvanced CMPS portal?
tobybird
11-26-2006, 03:03 AM
Sweet! Works on 3.6.0 - FF v2 and IE v6. Also running vBadvanced CMPS v2.2.0 on forumhome left side only.
Thanks!
PoetJA-1975
11-26-2006, 04:00 AM
hehehe - this looks soooooooo COLD :P
I'm using a light skin mostly though - will give it a try
Thanx!
Jacquii.
tehehehe - someone has already noticed the snow ;)
Working great on 3.5.6
Thanx!
BackSideSA
11-26-2006, 04:11 AM
couldnt get this to work for me
miner
11-26-2006, 08:09 AM
Thanks looks gr8 on my forums...
Ev!L ErN!E
11-26-2006, 08:17 AM
couldnt get this to work for me
what version of vB are ya using, and did you make sure to edit the forumhome template and add the code under the <head> tag?
btw I also tested this on IE7 and it works...
glad everyone is enjoying it, looks like some forums are gonna be chilly this season, lol.
:)
Allan
11-26-2006, 09:01 AM
yes, it's funny ;)
AMG021
11-26-2006, 12:03 PM
there is a hack like this and better! heres the link.This has more options
jamesk
11-26-2006, 02:44 PM
how about throwing in a few random multicolored light bulbs
basilrath
11-26-2006, 02:49 PM
how do you get the bigger flakes
in the coding on the js
Dynastar
11-26-2006, 04:56 PM
Yeh im suck trying to get the flakes bigger.
Dermo-MIO
11-26-2006, 05:23 PM
props dude will add this closer to xmas
Shazz
11-26-2006, 05:26 PM
Yeh im suck trying to get the flakes bigger.
The bigger they are the more it Lags your fourm
XFSImperial
11-26-2006, 06:07 PM
Nice, works great on vB 3.5.4 using Firefox 2 & IE7
joopss
11-26-2006, 06:09 PM
Thanks!
Dynastar
11-26-2006, 06:44 PM
The bigger they are the more it Lags your fourm
Yeh but how do you get them bigger ?
phovanxua
11-26-2006, 08:52 PM
I got a set of snow flake ...if you want I can give it to you to replace .... i got this mod form snow flake linkman ...I edit the snow by leaf for the Falls season ...you can check my forum here : http://www.vietdetroit.com
But that mod only work on IE ...it's doesn't show on FF .
So let try your mod to see if it work .
By the way if you add the script to bottom footer any where it will work all the forum ...include the home page vbadvanced .
phovanxua
11-26-2006, 09:18 PM
I like to see it work with FF and share with all people here .
Anyone here can do it ?
Look for the zip file below if you can make it work with FF ,also in that zip file there is images snow ...it's look better .
Shazz
11-26-2006, 09:59 PM
^I don't think your allowed to post someone elses Modification without there permission..
Ev!L ErN!E
11-26-2006, 10:34 PM
I did not write the snow java script, so I can't really help you with adding new things into it, like light bulbs and what not... but really if you want to search google for snow effect java scripts that are more to your liking you can do the edits I posted and just replace the "snow.js" with your own. As posted by someone else though, the larger the flakes the more lag your forum will have, thats why I used this script, its small and loads nicely.
phovanxua
11-26-2006, 10:44 PM
^I don't think your allowed to post someone elses Modification without there permission..
Thanks for remind me ...I copy it from here ...and the person who post it said :" Share the fun"
You feel free to look over here : http://www.vbviet.org/forums/showthread.php?t=1247&highlight=snowflake
If you know this mod came form some one else ...let me know ...i'll take it off ...so far ...I know I got that mod from there .
Enjoy now .
Shazz
11-26-2006, 10:59 PM
I did not write the snow java script, so I can't really help you with adding new things into it, like light bulbs and what not... but really if you want to search google for snow effect java scripts that are more to your liking you can do the edits I posted and just replace the "snow.js" with your own. As posted by someone else though, the larger the flakes the more lag your forum will have, thats why I used this script, its small and loads nicely.
You didn't write this snow.zip script?
Errrm who did
WAHMama
11-27-2006, 10:43 AM
woohoo I love it...I made it snow :)
jcfuller
11-27-2006, 04:18 PM
By the way if you add the script to bottom footer any where it will work all the forum ...include the home page vbadvanced .
Tried that as well and still not showing on vbadvanced cmps page. Anyone else got an idea on how to make this work? The rest of the forum snows like mad.;)
Optimus-JD
11-27-2006, 10:04 PM
haha, pretty funny. I installed it. http://www.thetfrealm.com
Hornstar
11-28-2006, 07:02 AM
nice work, looks real good.
Natalie@Club
11-28-2006, 09:26 AM
This a fabulous extra, thank you :D
Mr Pink
11-28-2006, 05:54 PM
LOL! It's a beautiful effect!
I will use it! :D
Thanks.
Mr Pink
11-28-2006, 09:41 PM
Hey, how can I make this flakes more big? I need also to make them more obscure..
*sorry for my bad english*
Josh1
11-28-2006, 11:49 PM
Used this last year, thanks.
edit:
And does this one make the browser use a sh*t load of resources like last time?
Ev!L ErN!E
11-29-2006, 12:55 AM
It doesn't use images for the snow effect, so its very easy on any browser and it shouldn't slow down your forums at all because of that.
for the Vbadvanced CMPS all you need to do is add the snow.js file to your root directory. and it works just fine.
Note: I have it added to my root Dir and My forum root Dir. I just tried it out and it worked. I am sure it can be placed in one dir and the code be edited to a more specific address Again I dont know cause I havent tried it and it was easier just to add it to my main root also at the time
<!-- Start Snow For Christmas Code -->
<script type="text/javascript" src="http://www.your website .com/snow.js"></script>
<!-- End Snow For Christmas Code -->
Spiffware
11-29-2006, 10:43 AM
learn about the snowflake.js here you can change the snow flake yourself here: http://www.peters1.dk/webtools/javascript/sne.php?sprog=en
DARKSTARVB
11-29-2006, 08:57 PM
Thanks bud :D
Looks sweet on a dark skin
jcfuller
12-01-2006, 04:54 AM
for the Vbadvanced CMPS all you need to do is add the snow.js file to your root directory. and it works just fine.
Thanks bro, worked great. :D
Mr Pink
12-01-2006, 12:36 PM
Hey, how can I make this flakes more big? I need also to make them more obscure..
*sorry for my bad english*
Can somebody help me? I need it now becouse I will put online Xmas Style for my forum, and I would have included this great feature..
gamerzindo
12-01-2006, 10:41 PM
niceee thanks... instal.. working 3.6.3
alawee.blawee
12-02-2006, 04:04 PM
it worked with me but i have a problem
its not fixed for a spacified resolution becuase it sometimes shows me bar for moving left and right
what can i do to fix it guys?
pedroenf
12-03-2006, 01:32 AM
Why never custom plugins for Opera browser too? Never understad it.
PoetJA-1975
12-03-2006, 03:36 AM
Why never custom plugins for Opera browser too? Never understad it.
:alien: This template mod does indeed work with Opera ;)
Aleah
12-03-2006, 03:58 AM
where is my root directory ?
TIA
erkme73
12-03-2006, 12:41 PM
One level above your /forums directory
Calibre_k
12-03-2006, 07:39 PM
How can we make snowflakes bigger?
HUMMERh3
12-03-2006, 11:38 PM
Yes I would like to know how to make more flakes...I tried adjusting the variable up to 8000 but didn't notice any difference in the number of flakes please help...I told my members that there was going to be a big snow storm at our forums :)
var num = 40; //Number of flakes
var timer = 30; //setTimeout speed. Varies on different comps
thpoul
12-04-2006, 07:57 PM
if (d.documentElement.style &&
typeof d.documentElement.style.MozOpacity == "string")
num = 12;
Change that 12 into what you want to have more flakes....
for (i = 0; i < num; i++){
sfs[i] = Math.round(1 + Math.random() * 1);
() * 3 to have some thicker flakes
BUT....this will make your site go REALLY slow so I don't suggest it..
extremebetas
12-04-2006, 08:23 PM
Not if you have fast server LOL
Mr Pink
12-04-2006, 09:05 PM
Change that 12 into what you want to have more flakes....
() * 3 to have some thicker flakes
BUT....this will make your site go REALLY slow so I don't suggest it..
Thanks.
Ev!L ErN!E
12-05-2006, 12:54 AM
where is my root directory ?
TIA
put the snow.js in the folder where your forums are installed
most likely "/forums" or "/forum"
fr?nk
12-05-2006, 06:39 AM
great stuff!
how about just adding it to the header above the navbar? possible?
thanks. frank
alawee.blawee
12-05-2006, 09:04 AM
Sir
I applyed your hack but I'm having a problem with the page size
shown in the attachment below
can you help me please fixing it?
thpoul
12-05-2006, 01:35 PM
great stuff!
how about just adding it to the header above the navbar? possible?
thanks. frank
Check www.phoenix-radio.gr ......it's snowing everywhere :p
Ev!L ErN!E
12-06-2006, 04:01 AM
Sir
I applyed your hack but I'm having a problem with the page size
shown in the attachment below
can you help me please fixing it?
I don't see how this hack could be causing your problem...
alawee.blawee
12-06-2006, 07:30 AM
I don't see how this hack could be causing your problem...
i think its something in the movement of the snow coz when the snow changes its diraction from right to left this thing happens
thpoul
12-06-2006, 10:49 AM
The problem is at the X direction of the snow since it keeps on changing every (30 by default) seconds.
It does the same thing to me too cause I have pasted it above the header but it doesn't bother me at all :p
alawee.blawee
12-06-2006, 04:18 PM
The problem is at the X direction of the snow since it keeps on changing every (30 by default) seconds.
It does the same thing to me too cause I have pasted it above the header but it doesn't bother me at all :p
so can't we fix the problem?
any java scripter here?
Betablocker
12-06-2006, 06:05 PM
Problem i have found is....
I run StonyArc's vbgooglemap Hotspot Edtion and when you add this script then all but 3 of the flags (hotspots) dissapear and if you stay with either firefox or ie open at the hotspot page then the cpu process will be 99%
Take it off then all is well
Other than that works fine.
Any ideas?
vb 3.6.4
1.4 hotspot
CMPS v2.2.1
alyster4k
12-07-2006, 03:01 AM
cool :up:
Does anyone know how to make it show on the vBadvanced CMPS portal?
Add to the "adv_portal" template under head. Make sure the file is in the right place too.
jndeakin
12-07-2006, 12:25 PM
Hi Ernie,
just tried looking at your site as given in the snow.js file (ie http://www.btinternet.com/~kurt.grigg/javascript ) All I got was a BT login screen. Have you moved it and forgotten to update your file?
Set it up today. Nicely seasonal :) Are you going to do another with falling Easter-Eggs next Spring? lol
wobbly
12-08-2006, 10:12 AM
Great stuff. However some users are complaining of CPU usage upto 100% when I have this script on my forums. Is thare anything I can do to reduce this as its actually interfering with them typing a post, for example: Missing characters out as they type.
thpoul
12-08-2006, 11:59 AM
Great stuff. However some users are complaining of CPU usage upto 100% when I have this script on my forums. Is thare anything I can do to reduce this as its actually interfering with them typing a post, for example: Missing characters out as they type.
:p tell them that it's high time they bought a new pc....
wobbly
12-08-2006, 03:49 PM
Hehehe, I did tell them that they should rid themselves of their present calculator and get a PC :laugh:
phonexpo
12-12-2006, 12:50 AM
Installed and working perfect of 3.6.4. ;)
Thanks !!!
packetattack
12-12-2006, 05:04 AM
Works great!
Installed at http://forums.nycmaximas.org
I'm running vBull v3.6.4 as well.
Ev!L ErN!E
12-15-2006, 09:46 PM
Works great!
Installed at http://forums.nycmaximas.org
I'm running vBull v3.6.4 as well.
looks good =)
iran.gs
12-16-2006, 03:00 AM
Installed Ty works prefect on 3.64 firefox
ryanchua
12-18-2006, 06:44 AM
For those with white background forums, you may wish to change this line:
+sfs[i]+'px;height:'+sfs[i]+'px;background-color:#ffffff;font-size:'+sfs[i]+'px"><\/div>');
TO
+sfs[i]+'px;height:'+sfs[i]+'px;background-color:#a9a9a9;font-size:'+sfs[i]+'px"><\/div>');
This makes the flakes visible yet not intrusive!
Great modification!
vbreal
12-21-2006, 04:26 AM
thanks this will look good with my holiday style
yingzhou
12-21-2006, 05:58 AM
the demo site is not working. :(
Thanks, works perfectly in IE and Firefox.
digital_sc4rz
12-21-2006, 10:03 PM
Thankyou:)
digital_sc4rz
12-21-2006, 10:04 PM
The demo site is working :cool:
the demo site is not working. :(
blackpheonix
12-30-2006, 03:52 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=99991" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=99991</a> i brought this out about a year ago now but teh community worked together and helped me make it a lil better it has big flakes but im not 100% sure if it works with vb 3.6
to mod creator sorry for hijacking your post but alot of ppl asked for big flakes i know its a lil late now but you dont have to use it just with snow u can have smilies etc i have added some files in the .zip file
Aleah
01-05-2007, 02:18 PM
One level above your /forums directory
thanks
Tralala
02-13-2007, 07:16 AM
I tested the demo in Safari (for Mac) and it appears to work fine as well, FWIW.
4x4 Mecca
04-01-2007, 05:05 PM
Installed for April Fools
Trickster303
11-10-2007, 02:58 AM
Works just fine for me! Thanks
Wanted to make more snow, and made changes as such in the java script:
var num = 100; //Number of flakes
var timer = 30; //setTimeout speed. Varies on different comps
But nothing changed. Any suggestions as to get more flakes? Size is fine.
Thanks
ChU v2
11-10-2007, 06:11 AM
Works just fine for me! Thanks
Wanted to make more snow, and made changes as such in the java script:
var num = 100; //Number of flakes
var timer = 30; //setTimeout speed. Varies on different comps
But nothing changed. Any suggestions as to get more flakes? Size is fine.
Thanks
I have a complete template that I'll be releasing in the next month with snowflakes on the header. It's not Java, it's actually an HTML marquee and is completely editable to make as much snow as you want.
Check back for it :D
yingzhou
11-10-2007, 03:35 PM
Whow, thanks bro!!! Waiting for your skin for this Christmas.
irfreedownload
11-11-2007, 07:39 PM
hi . it work on 3.6.8 ?
slednutz.com
11-15-2007, 05:15 AM
Any way to put this on only 1 forum?
ByG SteAm
11-28-2007, 03:43 PM
Where is the forum Root on FTP?
skcyber
11-30-2007, 10:25 AM
Under IE7 it crash my computer ... :(
Greek76
11-30-2007, 11:56 AM
Works great with vb 3.6.7 and using IE7. Thanks for the mod..
paulmjno
12-01-2007, 12:50 PM
I tested the demo in Safari (for Mac) and it appears to work fine as well, FWIW.
It doesn't work well on Safari at all. It creates horizontal scrollbars.
Sandy-XXX
12-03-2007, 05:23 PM
Working on 3.6.8 level 2...
But I want the snow more big. It´s possible?
nyunyu
12-03-2007, 06:45 PM
Works on 3.5.4..Thanks
Ohiosweetheart
12-04-2007, 03:11 AM
I use this with my Christmas designs, works like a charm!
Hanoifishing
12-08-2007, 02:25 AM
Is the snow bigger? Such as a flower snow?
Stryker412
12-10-2007, 04:22 PM
I have an odd issue. I've loaded my website in both IE and FF. It appears to have more snow on IE, anyone know why?
www.shatteredplanet.org
henners
12-11-2007, 10:03 AM
Used this in conjunction with another, larger snowflake, design. IE users get that one, but everyone else can use this because it wonderfully works with firefox! Cheers buddy!
redtaz
12-11-2007, 10:16 PM
Any way to allow users to turn this on/off?
pericolosogr
12-12-2007, 12:00 AM
works perfect in internet explorer and safari...
in firefox it lags a lot and when you change the number of flakes nothin happens, changes wont take effect....but they will appear to change in IE and Safari!
Pleaseee do something for safari!:D
Thanx a lot!
nyunyu
12-12-2007, 12:33 PM
Work well in 3.5.4.
Now upgraded to 3.6.8PL2 and the snow still work.
demo, click on the link on my signature. :D
NissanClub
12-13-2007, 11:30 PM
Looks pretty good! Thanks a lot :)
ChU v2
12-14-2007, 02:59 AM
Non java version:
https://vborg.vbsupport.ru/showthread.php?t=164253
ssandgirls
12-15-2007, 03:33 AM
Thankyou... I put that on my main page, :D
MotMann
12-16-2007, 09:26 AM
How i can Fix the wide size? There flakes goes out of the browserwindows, thats makes problems with Safari.
UltraFanatics
12-20-2007, 05:38 PM
Awesome, well done!
TechLines
12-22-2007, 05:20 PM
I cant find the forum root where is it
Ahsin1
12-25-2007, 07:56 AM
mine site is
vBulletin® Version 3.6.4
how it work on that ?
al.vb
12-26-2007, 11:23 AM
it works on 3.6.8, no problems. thanks a lot.
Ohiosweetheart
11-01-2008, 09:33 PM
I really wish that someone would make an update for this mod, and add an option for changing the color of the snow so you can use it on a light holiday background.
Davidspl
11-22-2008, 02:51 PM
Snow is white thou...
Works fine on 3.7.3 , thanks :D
G-man561
11-24-2008, 11:45 PM
very nice. Thanks man.
oldfan
11-29-2008, 01:41 AM
thanks :)
angelpie
11-30-2008, 06:39 PM
hmmm not sure if i am doing this right? i cant get it to work! maybe im putting it in the wrong area in the ftp? i know its root its just been so long since i edited! the root is your public html area right? lol probably not
viper357
12-02-2008, 01:45 PM
Any idea how to get this working on 3.6.12 in Firefox 3? It's running perfectly in IE. Please :)
Ev!L ErN!E
12-05-2008, 11:32 PM
hmmm not sure if i am doing this right? i cant get it to work! maybe im putting it in the wrong area in the ftp? i know its root its just been so long since i edited! the root is your public html area right? lol probably not
Your forums 'root' is the main folder that contains your forum files (ie the folder you installed your vB into)... so in your ftp look for the forum folder, or whatever the folders name is that you installed vB into, click on it and place the .js file in that folder and then do the edit in your stylemanger as explained above.
Hope that helps...
As for the problem with Firefox I do not know... I only use IE 7, sorry.
princeedward
12-07-2008, 06:27 PM
thanks... ;)
TheLastSuperman
12-07-2008, 08:58 PM
LOL, I see DD is everywhere :D
Anyways same idea, another thread ;)
https://vborg.vbsupport.ru/showpost.php?p=1680331&postcount=28
S-MAN
Trickster303
12-07-2008, 11:06 PM
Works just fine for me! Thanks
Wanted to make more snow, and made changes as such in the java script:
var num = 100; //Number of flakes
var timer = 30; //setTimeout speed. Varies on different comps
But nothing changed. Any suggestions as to get more flakes? Size is fine.
Thanks
Time to start the Xmas theme skin up again, and I have this mod on the skin. I asked last xmas if anyone had successfully increased the number of flakes as per above, and I see there have not been any responses, so will check again. Has anyone had any luck? If so how, as nothing changes by adjusting like I said above.
I don't want .gif images falling down the screen, I like this mod.
Appreciated.
Thanks
TheLastSuperman
12-07-2008, 11:16 PM
Time to start the Xmas theme skin up again, and I have this mod on the skin. I asked last xmas if anyone had successfully increased the number of flakes as per above, and I see there have not been any responses, so will check again. Has anyone had any luck? If so how, as nothing changes by adjusting like I said above.
I don't want .gif images falling down the screen, I like this mod.
Appreciated.
Thanks
In the snow.js file, find:
//Configure here.
var num = 40; //Number of flakes
var timer = 30; //setTimeout speed. Varies on different comps
//End.
And change to suit your needs, just remember it may look better w/ more but some members may not like toooo much ;).
That SHOULD work.... not sure why not?
S-MAN
Edit: Here's a newer version of the script:
//Snow - http://www.btinternet.com/~kurt.grigg/javascript
if ((document.getElementById) &&
window.addEventListener || window.attachEvent){
(function(){
//Configure here.
var num = 30; //Number of flakes
var timer = 30; //setTimeout speed. Varies on different comps
var enableinNS6 = 1 //Enable script in NS6/Mozilla? Snow animation could be slow in those browsers. (1=yes, 0=no).
//End.
var y = [];
var x = [];
var fall = [];
var theFlakes = [];
var sfs = [];
var step = [];
var currStep = [];
var h,w,r;
var d = document;
var pix = "px";
var domWw = (typeof window.innerWidth == "number");
var domSy = (typeof window.pageYOffset == "number");
var idx = d.getElementsByTagName('div').length;
if (d.documentElement.style &&
typeof d.documentElement.style.MozOpacity == "string")
num = 12;
for (i = 0; i < num; i++){
sfs[i] = Math.round(1 + Math.random() * 1);
document.write('<div id="flake'+(idx+i)+'" style="position:absolute;top:0px;left:0px;width:'
+sfs[i]+'px;height:'+sfs[i]+'px;background-color:#ffffff;font-size:'+sfs[i]+'px"><\/div>');
currStep[i] = 0;
fall[i] = (sfs[i] == 1)?
Math.round(2 + Math.random() * 2): Math.round(3 + Math.random() * 2);
step[i] = (sfs[i] == 1)?
0.05 + Math.random() * 0.1 : 0.05 + Math.random() * 0.05 ;
}
if (domWw) r = window;
else{
if (d.documentElement &&
typeof d.documentElement.clientWidth == "number" &&
d.documentElement.clientWidth != 0)
r = d.documentElement;
else{
if (d.body &&
typeof d.body.clientWidth == "number")
r = d.body;
}
}
function winsize(){
var oh,sy,ow,sx,rh,rw;
if (domWw){
if (d.documentElement && d.defaultView &&
typeof d.defaultView.scrollMaxY == "number"){
oh = d.documentElement.offsetHeight;
sy = d.defaultView.scrollMaxY;
ow = d.documentElement.offsetWidth;
sx = d.defaultView.scrollMaxX;
rh = oh-sy;
rw = ow-sx;
}
else{
rh = r.innerHeight;
rw = r.innerWidth;
}
h = rh - 2;
w = rw - 2;
}
else{
h = r.clientHeight - 2;
w = r.clientWidth - 2;
}
}
function scrl(yx){
var y,x;
if (domSy){
y = r.pageYOffset;
x = r.pageXOffset;
}
else{
y = r.scrollTop;
x = r.scrollLeft;
}
return (yx == 0)?y:x;
}
function snow(){
var dy,dx;
for (i = 0; i < num; i++){
dy = fall[i];
dx = fall[i] * Math.cos(currStep[i]);
y[i]+=dy;
x[i]+=dx;
if (x[i] >= w || y[i] >= h){
y[i] = -10;
x[i] = Math.round(Math.random() * w);
fall[i] = (sfs[i] == 1)?
Math.round(2 + Math.random() * 2): Math.round(3 + Math.random() * 2);
step[i] = (sfs[i] == 1)?
0.05 + Math.random() * 0.1 : 0.05 + Math.random() * 0.05 ;
}
theFlakes[i].top = y[i] + scrl(0) + pix;
theFlakes[i].left = x[i] + scrl(1) + pix;
currStep[i]+=step[i];
}
setTimeout(snow,timer);
}
function init(){
winsize();
for (i = 0; i < num; i++){
theFlakes[i] = document.getElementById("flake"+(idx+i)).style;
y[i] = Math.round(Math.random()*h);
x[i] = Math.round(Math.random()*w);
}
snow();
}
if (window.addEventListener){
window.addEventListener("resize",winsize,false);
window.addEventListener("load",init,false);
}
else if (window.attachEvent){
window.attachEvent("onresize",winsize);
window.attachEvent("onload",init);
}
})();
}//End.
You can copy then paste over the contents of your snow.js and try it then. Perhaps it's just an issue w/ you needing to clear your cookies/cache etc after you change and re-upload the file. Try that and post back however changing the variables should work!
kylek
12-09-2008, 03:32 AM
Works fine with 3.8.0 Beta 4!
Stryker412
12-10-2008, 02:55 PM
Same issue last year, on FF there are no where near as many flakes as IE.
gopherhockey
12-15-2008, 06:49 PM
no go for me and IE7. Its complaining about r.clientheight being null or not defined.
Googled this and found others with the same issue but no resolution.
Collectors
12-17-2008, 05:01 PM
This mod didn't work for me (vB 3.7.4, FireFox 3.0.5 and Explorer 7) but this one does: http://www.dynamicdrive.com/dynamicindex3/snownoimages.htm
Isn't that the same mod?
UKCE_Hitman
12-18-2008, 08:21 PM
INstalled thanks
Madlike
12-27-2008, 04:08 PM
Thank you. İt's nice. :)
kimmie-99
01-28-2009, 12:28 PM
Love it! Is there anyway to make the flakes larger?
g4dual
12-15-2009, 09:08 AM
Installed. Thank you! :)
WildFire.ca
12-18-2009, 05:38 AM
Best looking one out there, Thx
MrBrightSide
11-27-2012, 01:42 PM
Does anyone know if this works for 4.2?
Benedicte
10-02-2013, 11:48 AM
I love this. But it dont work with Firefox.
So I had to deleted it, cos many of my members use FF...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.