| home / programming / javascript / domscripting / 2 | [previous][next] |
|
Scripting for 5th Generation Browsers and BeyondCapturing Browser DimensionsLet's get back to positioning our layers by browser dimensions. You
will note that instead of assigning a numeric value to the left and top attributes
of the new layer object,
Once again we need to create a little cross browser and backward compatible
DOM switch. Netscape 4 and Netscape 6 use
if this condition holds true then the variables
If the condition is not true then attention is focused on the Internet Explorer part of the script and the DOM for those browsers is utilized.
|
| home / programming / javascript / domscripting / 2 | [previous][next] |
Created: August 22, 2001
Revised: August 22, 2001