In updating my DHTML skills, I am learning how to implement a cross-browser document object model. The book I am using, though, was written a couple of years ago. the author shows how to sniff out a Netscape 4x, IE 4x, older, or newer browsers. The problem is that the author has assumed based on statements made at the time ofpublishing that the new 5x browsers are going to implement the same DOM standards. Is this true? Or should I also be checking on the new 5x and 6x version browsers?
You should be checking... No browsers truly conform to the DOM yet. For a good tutorial on what your doing check the scriptorium at http://www.bratta.com/.
here's a good script for DOM, what y'all think of it?
you list layerID to change, the property to change, then, the value of the new property. Eg:
Only thing is NN uses pixelLeft, but still works with left, anyways. ANd visibility is dif in NN and IE, but both work ;)
[Edited by Arielladog on 08-31-2000 at 08:36 PM]