Name
Layer
Synopsis
document.layers[i
] document.layers[layer-name
] document.layer-name
Constructor
new Layer(width
,parent_layer
)
Description
The Layer object is supported only in Netscape 4 and was discontinued
in Netscape 6. It is entirely nonstandard, but is documented here
because it provides the only way to work with dynamically positioned
objects in Netscape 4. Any HTML element with a CSS
position
attribute of absolute
is represented by a Layer object in JavaScript. You can also create
layers with the nonstandard <layer>
tag, or
with the Layer( )
constructor.
Properties
-
above
The layer above this one, if any. Read-only.
-
background
The background image of the layer.
-
below
The layer below this one, if any. Read-only.
-
bgColor
The background color of the layer.
-
clip.bottom
The Y-coordinate of the bottom edge of the layer’s clipping area, relative to
top
.-
clip.height
The height of the layer’s clipping area. Setting this property also sets the value of
clip.bottom
.-
clip.left
The X-coordinate of the left edge of the layer’s clipping area, relative to
left
.-
clip.right
The X-coordinate of the right edge of the layer’s clipping area, relative to
left
.-
clip.top
The Y-coordinate of the top edge of the layer’s clipping area, relative to
top
.-
clip.width
The width of the layer’s clipping area. Setting this property also sets the value of
clip.right
.-
document
A read-only reference to the Document object contained within the layer.
-
hidden
Specifies whether a layer is hidden or visible. ...
Get Webmaster in a Nutshell, Third Edition 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.