MaxxBlade's PC Stuff
 
 

Fall v2.1

View our reviews on Hot Scripts[Download fall.zip] [Example Page]

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)

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);
Listed at Hot Scripts in JavaScript

Installation

  • 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):
    <SCRIPT type="text/javascript" src="pathto/fall.js"></SCRIPT>
  • Change "pathto/fall.js" to point to the location of fall.js
  • Installation Complete!

 


JavaScripts

Bak2Top
Fall
FallT
Feed
Stars


Generators

Clock
Fade
Q3A Config
Safe


Script Bits

Window Dims
Window Offsets
Leading Zeros
Submit1ce


Games

DiRT 3
SongPop