Re: navigation bars-absent on newer version of Netscape
by "tim booker" <timbooker(at)btinternet.com>
|
Date: |
Mon, 23 Apr 2001 09:09:15 +0100 |
To: |
"HWG Techniques" <hwg-techniques(at)hwg.org>, "Tamara" <Tamara(at)abbeyink.com> |
Cc: |
<webmaster(at)noteworthydesigns.com> |
References: |
noteworthydesigns attglobal abbeyink |
|
todo: View
Thread,
Original
|
|
Netscape have NOT done 'their own thing' with the DOM! In fact, they've
stopped doing their own thing. The DOM in Netscape 6 complies with the W3C
specifications.
Specifically, in version 4 of the major browsers, you might refer to the top
position of an element using:
document.whateverElement.top (for Netscape)
document.all.whateverElement.style.top
In the newest, standard compliant versions, this is changed to:
document.getElementById('whateverElement').style.top
Netscape have developed the new version to adhere more closely with
standards. This includes loosing much of the horrible old proprietary
stuff, such as <layer> tags.
The code I've detailed will work in all newest browsers, including IE5 and
Opera. It's not just a Netscape 6 specific.
You can easily detect browser support for the standard DOM in your JS by
asking:
if (document.getElementById)
Hope this helps,
Tim
http://www.timbooker.com/
----- Original Message -----
From: "Tamara" <Tamara(at)abbeyink.com>
To: "HWG Techniques" <hwg-techniques(at)hwg.org>
Sent: Sunday, April 22, 2001 10:54 PM
Subject: Re: navigation bars-absent on newer version of Netscape
At 01:35 PM 4/22/2001 -0700, Justin H. wrote:
>They're not supporting the <.LAYER> tag, which was a Communicator
>proprietary tag. They do continue to support <.DIV> type layers.
NS 6 has done it's own thing with the DOM and I don't understand DOM very
well. The one person that can come close to explaining it so I understand it
is Peter-Paul Koch who usually replies to posts like these.
Since he hasn't yet, http://www.xs4all.nl/~ppk/js/index.html -- there's lots
of stuff in there about the DOM, cross-browser issues, etc.
Another favorite spot of mine is http://www.bratta.com/ -- he has plenty of
dhtml in there and it is amazing (yes, it's dhtml and /not/ flash). Some of
his scripts don't have NS 6 fixes yet, but check the forum -- I picked up a
wonderful menu script that works in all but some Netscape flavors for Mac
and I think that's because of the DTD I used.
For issues pertaining to Macs and Netscape and rendering DTDs in strict v.
bug mode, well that's another link altogether which is at
http://developer.apple.com/internet/_html/doctype.html.
Having fun yet??
FWIW,
<tamara />
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA