Variables:

     isNS		- boolean used to specify whether the
		  	  browser used is Netscape or IExplorer
     _all		- Client-side IE 4 property
     _style		- Client-side IE 4 property
     wwidth		- Window Width
     wheight		- Window Height
     ydir		- y coordinate direction
     xdir		- x coordinate direction
     id1,id2,id3	- I have no idea
     x			- x coordinate value
     y			- y coordinate value

Custom Functions:

     getwindowsize()	- Sets the window size to the window size
			  minus the size of the moving object to keep
			  it from spilling over the screen.

     randomdir()	- Randomly sets the direction of the moving object.

     animate()		- Moves the object by incrementing or decrementing
			  the x and y coordinates.

Javascript Functions:

     eval(string)	- Takes the string parameter and converts it
			  to an executable expression.  In our animate function,
			  it changes ("x"+xdir) to either x-- or x++, which either
			  decrements or increments the x variable.

     parseInt(string)	- Returns the first number found in the string parameter.
			  In our script it is used to return the Browser Version number.

     clearTimeoOut(var) - Sets a Timing variable to zero.

     moveTo(x,y)	- Move object to x,y coordinate.

     setTimeOut(msecs)	- Function to set a timeout in milliseconds

     Math.floor(number)	- Rounds a number down to the next integer

     Math.random()	- Function that returns a random number between 0.0 and 1.0


Event Handlers:

     onLoad		- An Event Handler that executes during loading.

     onResize		- An Event Handler that executes upon resizing the browser window.


Properties:

     window.innerWidth  - Netscape Browser window property for window width.

     window.innerHeight - Netscape Browser window property for window height.

     document.body.clientWidth  - IE Browser window property for window width.

     document.body.clientHeight - IE Browser window property for window height.

     pixelLeft		- A Style property of IE to move the object so many pixels to the left.

     left		- A Layer property of Netscape to move the object so many pixels to the left.

     pixelTop		- A Style property of IE to move the object so many pixels up.

     top		- A Layer property of Netscape to move the object so many pixels up.


Free JavaScripts provided
by The JavaScript Source