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)
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;
number of objects
maximum side-to-side drift (pixels)
maximum falling speed (pixels)
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:
The path and filename of the image to fall.
The width of your image in pixels.
The height of your image in pixels.
- Download fall.zip and unpack the files.
- Copy fall.js to your web site.
- Add the following line within the <BODY> tags on the page(s):
- Change "pathto/fall.js" to point to the location of fall.js
- Installation Complete!