First I just want say that this is an awesome site!!!!
For the Rain/Snow effect script, how do u change the script so it will become snow and not rain?
Thank you very much!
First I just want say that this is an awesome site!!!!
For the Rain/Snow effect script, how do u change the script so it will become snow and not rain?
Thank you very much!
Erm, have ye read the instructions?
As with all medication, read the label before usage
cr3ative
A retired member, drop me a line through my site if you'd like to find me!
cr3ative media | read the stickies
yes i read the instructions and it said you have to change one variable so it can be changed to snow...what variable is it?
look in the section you place in the <HEAD> part of your page
Can I change the speed the snow falls down? Any hints would be very much appreciated![]()
Last edited by Joose; 11-30-2004 at 08:51 AM.
Hi
Try changing these areas.....
if(snow){sym = snowsym; speed=-8; angle=5; drops=howmany}
rgds,Simonf![]()
Thanks for reply. But... sorry, Im a beginner... I can't find such place in the code![]()
I copied the code from here: http://www.dynamicdrive.com/dynamicindex3/snow.htm
Looks like this in the HEAD:
//Rain/Snow effect- By Craig Blanchette Craiga.topcities.com
//Script featured on Dynamic Drive
//Visit http://www.dynamicdrive.com for this script and more
snow = true; // false-rain; true-snow
snowsym = " * " //These are the symbols for each
rainsym = " ' " //You can put images here.
howmany = 10 //How many drops/snowflakes?
/**************Do not need to change anything below***********/
if(snow){sym = snowsym; speed=-10; angle=50; drops=howmany}
rgds,Simon![]()
Hi
OK.. I see the issue... in your thread description you said rain/snow.... now your pointing to a different script!!!!!!
Replies where based on:
http://www.dynamicdrive.com/dynamicindex3/rain.htm as you did not supply the link, you just wasted our time![]()
Let me look at the other one and come back to you!! Simonf
Last edited by simonf; 11-30-2004 at 09:16 AM.
Try playing with these:
function snowIE_NS6() { // IE and NS6 main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-50);
yp[i] = 10;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
rgds,Simonf![]()
Bookmarks