NEWSFEED »





Rate Fall
@ HotScripts.com
Excellent
Very Good
Good
Fair
Poor

Scripts

Generators

Script Bits

Fall v2.0

[Download fall.zip] [Example Page] [Support Forum]

Fall is a small script to allow you to have falling objects on your web page.  A seasonal idea would be of course, Snow!!!  Also Available is a version that uses text instead of graphics as the falling objects (FallT)

Installation

  • Download fall.zip and unpack the files
  • Copy the files within to your website.
  • Modify the image locations in the fall.js to suit your site
  • Put this line anywhere within the <body> tags on your page(s):
    <script language="JavaScript" src="pathto/fall.js"></script>
  • Change the "pathto/fall.js" to suit your site
  • Installation Complete!

Configuration

If you want to change the variables in Fall you will have to modify the line shown below:

var numObjs=20, waft=50, fallSpeed=15, wind=0;
  • numObjs=20
    number of objects
  • waft=50
    maximum side-to-side drift (pixels)
  • fallSpeed=15
    maximum falling speed (pixels)
  • wind=0
    prevailing wind (1=right, -1=left, 0=off)(can be greater than 1 or -1)

The images are set up on the next line(s) as follows:

newObject("pathto/filename.gif",height,width);
  • pathto/filename.gif
    The path and filename of the image to fall.
  • width
    The width of your image in pixels.
  • height
    The height of your image in pixels.
e.g. newObject("snowflake.gif",28,25);

Hot Topics In The Fall Support Forum