1) Script Title: How do I change the size of the flakes?
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ownoimages.htm
3) Describe problem: I want to make the snowflakes bigger
1) Script Title: How do I change the size of the flakes?
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ownoimages.htm
3) Describe problem: I want to make the snowflakes bigger
Change the image?
I mean the one without images that just have all the small white dots going on your screen
Havnt instaleld it so im not sure which..
but it is either one fo these:
Probs boths.. try changing them to 10 and see what happens and let me know..h = rh - 2;
w = rw - 2;
}
else{
h = r.clientHeight - 2;
w = r.clientWidth - 2;
}
}
Thats is your snow.js file batherway![]()
Nothing much, those calculations involve the dimensions of the window.
One thing you have to realize with this script is that the 'snowflakes' are just divisions. If they get too big, you will see that they are square. There is a little wiggle room though, at least at 1440 x 900 res. At lower resolutions, any increase of size would probably make their square shape readily apparent.
If you want to go ahead, replace this:
with:Code: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>');
This will basically make them 50% larger. If you use 2 instead of 1.5, they will be twice as big but, at that size, even on my relatively hi-res monitor, they looked more like ice cubes or dandruff than snowflakes.Code:document.write('<div id="flake'+(idx+i)+'" style="position:absolute;top:0px;left:0px;width:' +Math.floor(sfs[i]*1.5)+'px;height:'+Math.floor(sfs[i]*1.5)+'px;background-color:#ffffff;font-size:'+sfs[i]+'px"><\/div>');
My suggestion would be to use a script with images if you want them much larger.
Last edited by jscheuer1; 12-20-2006 at 07:40 AM. Reason: enhance comentary
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Is there a way that I can save this snow as a gif?
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Thanx, i did not want them that much bigger, just bigger than little dots, but I can figure the rest out with the script I gave.
It didn't work. I really would like to save the snow somehow. It's beautiful, but the Ctrl-PrtSc did not work for me. Is there another way that I can save it? I just love the snow because it's simple and real whereas the other snowflakes are kinda unrealistic.
By the way, thanks for getting back to me.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks