Fall is a small script to allow you to have falling objects on your web page. A seasonal idea would be of course, Snow!!!
Setting it up is easy:
- Download this file (right click, save as) (fall.zip)
- In the zip file you will find: fall.js
, snowflake.gif ,
- Put this line within the <body> tags on your page:
That should be it...
want to change the variables in Fall they are as follows:
-> number of objects
-> delay speed (milliseconds)
-> how far to waft side to side (pixels)
-> maximum fall speed (pixels)
-> prevailing wind (1=right, -1=left, 0=off)
In this version, the images are
set up as follows:
- fallg[x]=new Array("filename.gif",width,height,3d)
where 3d is 1=on or 0=off, e.g.:
- fallg=new Array("snowflake.gif",25,28,1)
when adding multiple images you must
make sure that the x is replaced with the next number in the
sequence, with the sequence starting with 0.
A few e-mails arrived asking for a toggle switch for
fall to turn it off and on (Fall can be processor intensive for low
spec machines) This is the addition to 1.7a. The toggle can be made
from a link on any object/text to the toggle function:
Thanks to Kage for the idea for the toggle.
Check out his site here (http://ss.dbmxl.com)