11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Despite being a tag found within a it will not be represented in the elements[] array of<br />

a form object.<br />

Layer (Proprietary Document Object)<br />

Layer objects correspond to or tags and are supported in Netscape 4 only.<br />

This object was deprecated in favor of the standard tag in conjunction with CSS absolute<br />

positioning, which provides very similar functionality.<br />

Properties<br />

above <strong>Reference</strong> to the Layer above the current layer according to the z-index order<br />

among all layers in the document (null if the current layer is topmost). (N4)<br />

background String specifying the URL of the background image for the layer. (N4)<br />

below <strong>Reference</strong> to the Layer below the current layer according to the z-index order<br />

among all layers in the document (null if the current layer is the bottommost). (N4)<br />

bgColor String value indicating the named color or hexadecimal triplet of the layer‘s<br />

background color (e.g., "#FF00FF"). (N4)<br />

clip.bottom, clip.height, clip.left, clip.right, clip.top, clip.width Numeric (pixel)<br />

values defining the rectangular clipping area of the layer. Any content outside of this<br />

rectangle is not displayed. (N4)<br />

document Read-only reference to the Document object of the layer. This is a fullfeatured<br />

Document object, complete with the images[] and related collections. Often<br />

used to write() content to a layer. (N4)<br />

left Pixel value indicating x coordinate of the left edge of the layer. If the layer‘s<br />

position attribute is "absolute", this placement is relative to the origin of its parent<br />

(enclosing) layer. Otherwise, this placement is relative to the content surrounding it.<br />

You may use string values with this property to indicate units other than pixels, for<br />

example, "25%". (N4)<br />

name Read-only value containing the name or id attribute for the layer. (N4)<br />

pageX Value represented in pixels indicating the layer‘s horizontal position relative to<br />

the visible page. (N4)<br />

pageY Value represented in pixels indicating the layer‘s vertical position relative to the<br />

visible page. (N4)<br />

parentLayer <strong>Reference</strong> to Layer in which the current layer is contained (or to the<br />

Window object if no such layer exists). (N4)<br />

siblingAbove <strong>Reference</strong> to the Layer above the current layer according to the z-index<br />

order among all layers that share the same parent as the current layer, null if it is the<br />

topmost. (N4)<br />

siblingBelow <strong>Reference</strong> to the Layer below the current layer according to the z-index<br />

order among all layers that share the same parent as the current layer, null if it is the<br />

topmost. (N4)<br />

src String indicating the URL of the layer‘s content. (N4)<br />

top Pixel value indicating y coordinate of the top edge of the layer. If the layer‘s<br />

position attribute is "absolute", this placement is relative to the origin of its parent<br />

(enclosing) layer. Otherwise, this placement is relative to the content surrounding it.<br />

You may use string values with this property to indicate units other than pixels, for<br />

example, "25%". (N4)<br />

visibility String indicating whether the layer is visible. A value of "show" makes the<br />

layer visible, "hide" makes it invisible, and "inherit" causes it to inherit the visibility<br />

property of its parent layer. (N4)<br />

window <strong>Reference</strong> to the window or frame containing the layer. (N4, ReadOnly)<br />

x Synonym for left. (N4)<br />

y Synonym for top. (N4)<br />

zIndex <strong>The</strong> relative z-index of the layer (with respect to its siblings). (N4)<br />

Methods<br />

captureEvents(eventMask) Instructs layer to capture the events given in the bitmask<br />

eventMask. (N4)<br />

handleEvent(event) Causes the Event instance to be processed by the appropriate<br />

handler of the layer. (N4)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!