Re: Layer visibility & JavaScript
by "Bryan Bateman" <batemanb(at)home.com>
|
Date: |
Wed, 6 Dec 2000 10:38:46 -0000 |
To: |
"Peter-Paul Koch" <gassinaumasis(at)hotmail.com>, <hwg-techniques(at)hwg.org>, <woodduck(at)mbay.net> |
References: |
hotmail |
|
todo: View
Thread,
Original
|
|
Yes I know the CSS-P answer was vauge, but her site does browser detection
and code branching. I just wanted to let her know that layers alone were
not enough.
In hind site document.all would have been the best answer.
----- Original Message -----
From: "Peter-Paul Koch" <gassinaumasis(at)hotmail.com>
To: <batemanb(at)home.com>; <hwg-techniques(at)hwg.org>; <woodduck(at)mbay.net>
Sent: Wednesday, December 06, 2000 9:18 AM
Subject: Re: Layer visibility & JavaScript
>
>
> >Dynamic Positioning:
> >------Netscape4-----------------
> >Layers are in arrays. document.layer[i]
> >
> >Make "i" a variable and index the array.
> >
> >"Additionally, any layer that is given a name with the ID attribute can
be
> >accessed by name. For example, if a layer specifies ID="L2", you can
refer
> >to it in Navigator as document.L2 or as document.layers["L2"]."
>
> Correct.
>
> >------IE---------------------------
> >Use CSS-P
>
> This is a non-answer, CSS-P is generally overrated and in addition it
> doesn't answer the question and only confuses people.
>
> IE uses the array document.all, that works about the same as Netscape's
> document.layers. NN6 uses quite different things. For more info, see
>
> http://www.xs4all.nl/~ppk/js/ under DHTML => Introduction and DOM. There's
> no script that you can copy-paste, just an explanation of how things work
in
> the various browsers.
>
> ppk
>
>
____________________________________________________________________________
_________
> Get more from the Web. FREE MSN Explorer download :
http://explorer.msn.com
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA