The layer Object [4]

The layer object is used to embed layers of content within a page; they can be hidden or not hidden. Either type is accessible through JavaScript code. The most common use for layers is in developing Dynamic HTML (DHTML). With layers, you can create animation or other dynamic content on a page by cycling through the layers you have defined.

Properties

  • above— Places a layer on top of a newly created layer.

  • background— Used to specify a tiled background image of the layer.

  • below— Places a layer below a newly created layer.

  • bgColor— Sets the background color of the layer.

  • clip(left, top, right, bottom)— Specifies the visible boundaries of the layer.

  • height— Specifies the height of the layer, expressed in pixels (integer) or by a percentage ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.