PDA

View Full Version : Rain/Snow effect script



scojo
11-28-2004, 04:20 PM
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!

cr3ative
11-28-2004, 05:48 PM
Erm, have ye read the instructions?

As with all medication, read the label before usage :p

cr3ative

scojo
11-28-2004, 10:47 PM
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?

chinchilla2
11-29-2004, 12:32 AM
look in the section you place in the <HEAD> part of your page

Joose
11-30-2004, 08:43 AM
Can I change the speed the snow falls down? Any hints would be very much appreciated :)

simonf
11-30-2004, 08:55 AM
Hi

Try changing these areas.....

if(snow){sym = snowsym; speed=-8; angle=5; drops=howmany}

rgds,Simonf :cool:

Joose
11-30-2004, 09:02 AM
Thanks for reply. But... sorry, Im a beginner... I can't find such place in the code :confused:
I copied the code from here: http://www.dynamicdrive.com/dynamicindex3/snow.htm

simonf
11-30-2004, 09:03 AM
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 :cool:

simonf
11-30-2004, 09:07 AM
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 :mad:

Let me look at the other one and come back to you!! Simonf

simonf
11-30-2004, 09:28 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 :eek:

Gabber
11-30-2004, 02:38 PM
yes, that is what I have done... does funny stuff..also change the color to #c0c0c0, its better

ddadmin
11-30-2004, 09:06 PM
scojo, I'm closing this thread due to too many inconsistencies, and not following our posting guidelines when asking a question (ie: include a link to the script on DD): http://www.dynamicdrive.com/forums/showthread.php?t=6 In the future, please observe the guidelines.