FallT is a variation on my other falling script Fall except this one only uses text for the falling objects. You can of course use an * or similar for the text and still get a snowy effect or you can use a short message like "Happy Xmas". As this version is not as graphical as the other fall script I've added a colour fade to give things a bit of depth.
Setting it up is easy:
- Download fallt.zip (contains fallt.js & example.htm)
- Extract "fallt.js" from the zip file and place within your site somewhere.
- Change the "pathto/fall.js" to reflect its location in your site.
That should be it...
If you want to reconfigure FallT you will have to modify the variables as shown below:
(all on the first line of the script)
number of objects
delay speed (milliseconds)
how far to waft side to side (pixels)
maximum falling speed (pixels)
prevailing wind (1=right, -1=left, 0=off)
text to display falling (set to bullet with code "•")
font size to use (pixels)
Font Family to use for falling text
(for multiple downgrading fonts, separate with commas i.e. "Tahoma, Arial, Verdana")
To change the colours you will need to change the colours in the array. you can have as many colours as you like and you can use any hex colours you like from #000000 to #FFFFFF and they can be random or you can use another of my scripts, fade, to create a fading colour array.
Fallt can be processor intensive for low spec machines. So you can add a toggle switch to your page to allow your visitors to turn off FallT. The toggle can be made from a link on any object/text to the toggle function: