|
This script is designed to give the 4.0 browsers some of the DOM syntax. In Netscape 4,this would be limited to positioned elements (aka Layers). The syntax should work in DOM compliant browsers as well as in IE 4 and Opera 5. Please drop me a line if you can prove me wrong.
The elements are retrieved with the document's getElementById method,
In Netscape 4,the only unit that can be used is pixel (px) and the Height() and Width() methods are added to the window which return the viewing area
To use the script the following line should be put in the head of the webpage. <script language="Javascript1.2" src="b4dom.js"> </script>
|
Put the script to the test
Main Page