Results 1 to 4 of 4

Thread: Snow Script Question

  1. #1
    Join Date
    Jan 2013
    Location
    Waukesha, WI
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Snow Script Question

    1) Script Title: Snow Effect

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex3/snow.htm

    3) Describe problem: I would like to have multiple sized snow flakes falling. How do I tweak the code to include multiple images?

    Thank you VERY much :-)

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use this script:

    http://www.dynamicdrive.com/dynamicindex3/leaves.htm

    substituting various snowflake images for the various leaf ones. Better yet, use this updated version:

    http://home.comcast.net/~jscheuer1/s...s_bidirect.htm

    Use your browser's "View Source" to get the code.

    I know, the images are all the same and they're going up. However, you can configure multiple images and/or change the direction in this section:

    Code:
    var dir=-1    // Set 'falling' direction (1 for down, -1 for up)
    var speed=60  // 12 to whatever (60 is pretty slow) higher numbers are slower
    var Amount=8; // Smoothness depends on image file size, the smaller the size the more you can use!
    var sway=10  // Set amount of left/right swaying of objects (default=10), higher numbers produce more sway
    
    //Pre-load your image(s) below!
    grphcs=new Array(6)
    Image0=new Image();
    Image0.src=grphcs[0]="bubble.gif";
    Image1=new Image();
    Image1.src=grphcs[1]="bubble.gif"
    Image2=new Image();
    Image2.src=grphcs[2]="bubble.gif"
    Image3=new Image();
    Image3.src=grphcs[3]="bubble.gif"
    Image4=new Image();
    Image4.src=grphcs[4]="bubble.gif"
    Image5=new Image();
    Image5.src=grphcs[5]="bubble.gif"
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Scott Ludtke (01-18-2013)

  4. #3
    Join Date
    Jan 2013
    Location
    Waukesha, WI
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you John.

    Okay. I tried the script and I cannot seem to get it to work. I have it on a demo site here: waukeshaguitartownproject.com and I am using musical notes in place of the leaves.
    Help or suggestions would be sincerely appreciated.

    Have a great day!

  5. #4
    Join Date
    Jan 2013
    Location
    Waukesha, WI
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    John:

    Please disregard my inability to get it working. I simply had to move the code to the proper area in header.php to bring the script forward.

    Thank you VERY much!

    Have a great day!

Similar Threads

  1. Snow Script
    By Infonut in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-01-2012, 07:36 PM
  2. Snow Script
    By Skype in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-13-2011, 03:36 AM
  3. Snow Script Questions
    By DJAuto in forum JavaScript
    Replies: 3
    Last Post: 12-03-2006, 04:36 PM
  4. Help with snow script
    By ukrockhit in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 12-02-2005, 10:22 AM
  5. Rain/Snow effect question
    By TurdFurgason in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 12-15-2004, 11:38 AM

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
  •