document layers question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Leonard

    document layers question

    Hi.

    Can anyone help me please. If the syntax for IE is:

    document.getEle mentById(layerI D)

    What if I want to use layers ?

    document.layers ?????????

    Can someone help me out please.

    Thanks

    Chris


  • Lasse Reichstein Nielsen

    #2
    Re: document layers question

    "Chris Leonard" <c.leonardNOSPA M@btinternet.co m> writes:
    [color=blue]
    > Can anyone help me please. If the syntax for IE is:
    >
    > document.getEle mentById(layerI D)[/color]

    That is not just IE, it is in the W3C DOM Core specification.

    It is the way to go, unless you need to support ancient browsers.
    [color=blue]
    > What if I want to use layers ?[/color]
    [color=blue]
    > document.layers ?????????[/color]

    Then you need to use Netscape 4 or earlier.

    These are the only browsers to support the proprietary Netscape tag
    <layer>, and the collection "document.layer s" [1].

    Some people still use the word "layer" about absolutely positioned
    div elements. I don't recommend that, since it can be confuzed with
    real <layer>-tag layers.


    /L
    [1] OmniWeb is reported to have a property called document.layers , but
    it doesn't work.
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    Working...