The Zprime.js + Zbrowse.js array:

ID Value Description
screen.width Width of the monitor display, in pixels.
screen.height Height of the monitor display, in pixels.
screen.availWidth Available width of the monitor display, in pixels.
screen.availHeight Available height of the monitor display, in pixels.
screen.colorDepth Color bit depth. (ie: 8bit = 256 colors, etc...)
Zbrowse.width() Inside width of the browser window, in pixels.
Zbrowse.height() Inside height of the browser window, in pixels.
Zbrowse.scrollX() Amount of page scroll, RIGHT to LEFT.
Zbrowse.scrollY() Amount of page scroll, UP and DOWN.

There's not too much to these first functions, but they set the groundwork for all the others.
    Zflag.ID Value
    Zflag.NS
    Zflag.IE
    Zflag.gecko
    Zflag.mac
    Zflag.opera
    getZbrowser()
  • Zprime.js
    This is naught but the copyright, one line for disabling error reporting, and the basic browser "family", as defined by checking for the functions known. "NS" is defined as true if the browser understands "document.layer" is, which means Netscape 4.x. "IE" is true if the browser understands "document.all", which would be the MSIE 5.x and higher. "gecko" is true if the browser understands "document.getElementById", which would indicate version 6 browsers, such as MSIE 6.x and Mozilla/Netscape 6.x. (Note, certain browsers, such as MSIE5.5 and Opera will have "true" for both IE and gecko.) Also set here are the "mac" and the "Zopera" (Opera browser) flags, sometimes you just gotta know!


  • Zscreen.js
    Hah! I actually had a function for this, but this is one of the few functions that are handled exactly the same on all the 4-6 level browsers. Who would have figured? I've left the "screen" variables in the table above, they make a useful reference, and I expect to have need of them for many of my scripts.


  • Zbrowse.js
    This short script creates the "Zbrowse" variable, and loads the acquired information into an array. Basically, no more than innerHeight and innerWidth for now, as well as the amount of scroll on the window, in pixels.
The screen values will not change, (hopefully?) so they will be checked once, and once only. The Zbrowse values are handled with a 'prototype' function as we expect them to change as the site is viewed, so they will be checked each time they are referred to.

Check browser variables.
Zprime.js, default setup file, 805 bytes.


Zbrowse.js, define browser variables, 560 bytes.