The Zparam array:

num ID Value Description
0 screenWidth 1280 Width of the monitor display, in pixels.
1 screenHeight 720 Height of the monitor display, in pixels.
2 availWidth 1280 Available width of the monitor display, in pixels.
3 availHeight 720 Available height of the monitor display, in pixels.
4 browserType gecko Possible values are NS4, IE4, IE5, gecko, and 'crap'.
5 innerWidth 1280 Inside width of the browser display, in pixels.
(This value updates automatically.)
6 innerHeight 720 Inside height of the browser display, in pixels.
(This value updates automatically.)
7 scrollX 0 Horizontal scrolling, in pixels.
(This value updates automatically.)
8 scrollY 0 Vertical scrolling, in pixels.
(This value updates automatically.)

We have two major functions you will be using:
  • getZvalue('which')
    Use single quotes to define the ID of "which" variable you want the value of.
  • setZvalue('which',what)
    Use single quotes to define the ID of "which" variable you want to reset the value of, and to "what". What can be either a string or a number.
We also use the Zupdater.js script to set two very critical variables, Zrefresh and Zsnap.
  • Zrefresh
    The Zupdater runs on a setInterval, defined in milliseconds. (ie: 1000 units equals a second.) Values of between 5 and 50 will be best for DHTML animations, but may eat too much CPU on slower machines. You should run this script every second or so, at the least.
  • Zsnap
    Zsnap is set by default to "1", which equals no snap at all. "Snap" is my term for the delay an object experiences until coming to where it should be according to the exact parameters. A Zsnap of 2-4 will make the objects glide to their intended positions, instead of simply appearing there.
That's about all there is to it.

Some of these values you will never want to change, but some of them will be modified "on the fly" by other scripts. Any of them you can muck about with the values if you feel the need to, that's the whole point!
Zprime.js, setup & create variables, 3,286 bytes.


Zprime.js, setInterval updater script, 388 bytes.