<LAYER...>
ABOVE
="Layer Reference"
BACKGROUND
="URL"
BELOW
="Layer Reference"
BGCOLOR
="#rrggbb|Colour Name"
CLASS
="Style Sheet Class"
CLIP
="left,top,right,bottom in Pixels"
ID
="Unique Identifier"
LANG
="Language descriptor"
LANGUAGE
="Scripting Language descriptor"
LEFT
="Pixels"
NAME
="Element Identifier"
SRC
="URL"
STYLE
="Style Sheet Setting"
TITLE
="Title of element"
TOP
="Pixels"
VISIBILITY
="show|hide|inherit"
WIDTH
="Pixels"
Z-INDEX
="Z-order Index"
onBlur
="Script Function"
onFocus
="Script Function"
onLoad
="Script Function"
onMouseOut
="Script Function"
onMouseOver
="Script Function"
>
...
</LAYER>
Renders the enclosed text as a discrete layer in the document at a fixed position, that can appear in front of, or behind other content, depedning on it's Z-ORDER
.
Attribute | Description |
ABOVE |
Specifies an existing <LAYER> element, that the current <LAYER> element will be above, in terms of z-order. |
BACKGROUND |
Provides a URL reference for an image to be used as the background for the layer. |
BELOW |
Specifies an existing <LAYER> element, that the current <LAYER> element will be below, in terms of z-order. |
BGCOLOR |
Specifies a colour for the background of the <LAYER> . |
CLASS |
Sets the style sheet class (specified in an in-line, linked or imported style sheet) to be applied to the element. |
CLIP |
Specifies which portion of the <LAYER> element is actually visible. The values are pixel values for the respective co-ordinates of the displayed area. |
ID |
Sets a unique identifier for the element, allowing it to be referenced within scripting functions, or to specify a style sheet setting, set using a #<style_class> class selector. |
LANG |
Specifies the language (using an ISO country code derived classifier) that the element is using, for browsers that support document localisation. |
LANGUAGE |
Sets the scripting language that any in-line scripting events are written in. |
LEFT |
Specifies the left-most point of the <LAYER> , in pixels, with "0" being the left-most edge of the browser window. LEFT can take negative values, initially displaying the contents of the layer off the screen. |
NAME |
Sets a unique identifier for the layer, which can be used to identify the layer in scripting functions, or to identify the layer in scripting functions. |
SRC |
Specifies the URL of a document, whose contents will be used as the contents of the layer. |
STYLE |
Sets in-line style sheet settings for the element, which will over-ride any set in a <STYLE> block, or externally linked to the document. |
TITLE |
Specifies an informational title for the element. The contents of the TITLE attribute may be presented as a Tool-Tip by some browsers. |
TOP |
Specifies the top-most point of the <LAYER> , in pixels, with "0" being the top-most edge of the browser window. TOP can take negative values, initially displaying the contents of the layer off the screen. |
VISIBILITY |
Controls whether the layer is visible (VISIBILITY="show" ) or not (VISIBILITY="hide" ). A value of VISIBILITY="inherit" sets the visibility value to that of the layers parent. If it has no parent (or is a parent layer), then 'inherit' and 'show' are identical. |
WIDTH |
Specifies the width of the layer in pixels. |
Z-INDEX |
Specifies the z-order index of the layer with respect to other layers. It is mutually exclusive with the ABOVE or BELOW attributes. |
Event | Description |
onBlur |
Fires when the element loses the users focus (i.e. the user clicks on a different element within the document). |
onFocus |
Fires whenever the element receives the focus, either by the user directly clicking on, or 'tab'bing to the element, or when the focus is applied through scripting. |
onLoad |
Fired when the document containing the referenced layer is fully loaded, regardless of the referenced layers visibility. |
onMouseOut |
The onmouseout event fires when the users mouse leaves the area defined by the referenced element. |
onMouseOver |
The onmouseover event fires when the users mouse enters the area defined by the referenced element. |
See 'HTML Reference|Block Level Element|<LAYER>' for more information.