Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Rain/Snow effect script

  1. #1
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Rain/Snow effect script

    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!

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  3. #3
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Oct 2004
    Location
    Texas
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    look in the section you place in the <HEAD> part of your page

  5. #5
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    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.

  6. #6
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi

    Try changing these areas.....

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

    rgds,Simonf

  7. #7
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  8. #8
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    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

  9. #9
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    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.

  10. #10
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •