O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

<LAYER> — NN 4 IE n/a HTML n/a

Synopsis

<LAYER>...</LAYER>

End Tag: Required

A LAYER element is a positionable element in Navigator’s object model (e.g., like a block-level element whose CSS position: attribute is set to absolute). As a result, many of the attributes are named according to the Navigator way of positioning, sizing, and stacking positionable elements. It is unlikely that the LAYER or the related ILAYER elements will be adopted by the W3C, so you are encouraged to use CSS-Positioning syntax (which works on both browser platforms) instead.

Content for a LAYER element can be read from a separate file (with the SRC attribute) or wired into the current document by placing the HTML between the start and end tags. You can include both types of content in the same LAYER element. Content from the SRC document is rendered first (as its own block-level element), with additional content starting on its own line below the external content’s rectangle.

A LAYER element can be positioned anywhere within a document and can overlap content belonging to other layers (including the base document layer). Under link or script control, content for an individual layer can be changed without having to reload the other content on the page. Moreover, LAYER elements may be nested inside one another. See Chapter 5, for more details.

Example

<LAYER BGCOLOR="yellow" SRC="instrux.html" WIDTH=200 HEIGHT=300></LAYER>

Object Model Reference

NN

[window.]document.layerName

Attributes

ABOVE

BGCOLOR ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required