
Layer
96
|
JavaScript Pocket Reference
top
The Y-coordinate of this layer relative to the containing layer
or document. Setting this property moves the layer up or
down.
top is a synonym for y.
visibility
A read/write string that specifies the visibility of the layer. The
three legal values are: “show”, “hide”, and “inherit”.
window
The Window object that contains the layer, regardless of how
deeply nested the layer is within other layers.
x, y
The X and Y-coordinates of the layer. x is a synonym for the
left property and y is a synonym for the top property.
zIndex
The position of the layer in the z-order, or stacking order, of
layers. When two layers overlap, the one with the higher
zIndex appears on top and obscures the one with the lower
zIndex. If two sibling layers have the same zIndex, the one
that appears later in the
layers[] array of the containing
document is displayed later and overlaps the one that appears
earlier.
Methods
load(src, width)
Loads a new URL into the layer, sets the layer width, and
returns nothing.
moveAbove(other_layer)
Moves this layer above another and returns nothing.
moveBelow(other_layer)
Moves this layer below another and returns nothing.
moveBy(dx, dy)
Moves the layer relative to its current position and returns
nothing.
moveTo(x, y)
Moves the layer to the point (x,y) relative to its containing
layer or window and returns nothing.