LAYER
This tag is used to define a layer witin a document which can be manipulated. The layer contents are defined using HTML code between the LAYER tags or by using the SRC= attribute. For example:
<LAYER SRC="FOREGROUND.HTML" HEIGHT="50" WIDTH="25" Z-INDEX="4" NAME="FORELAYER" VISIBILTY="SHOW"></LAYER>
LAYER Attributes:
ABOVE=" ... "
This attribute specifies the name of the layer over which this layer will appear.
BACKGROUND="URL"
This attribute defines the absolute or relative loaction (URL) of the image to be used as a background.
BELOW=" ... "
This attribute specifies the name of the layer below which the current layer will appear.
BGCOLOR="#RRGGBB" or a color in quotes, such as "RED", "BLUE" or "YELLOW"
This attribute sets the color of the element to which it was invoked, this case being the background color of a layer within the document. It can be applied to anything that can be colored, such as text, borders, or backgrounds. The color can be defined using a proper color name such as "RED" or with an #RGB (Red-Green-Blue) value.
CLIP="x1,y1,x2,y2"
This attribute indicates the dimensions, measured in pixels or as a percentage of available space, of a clipping rectangle that specifies which ares of the layer are visible. Areas outside this area become transparent.
HEIGHT="n"
This attribute specifies the HEIGHT, measured in pixels, of the object to which it has been assigned.
LEFT="n"
This attribute defines the layer's horizontal position, measured in pixels, with respect to the left edge of the parent layer.
NAME=" ... "
This tag is used to mark a location within a document with a unique name. This named location can then be quickly moved to by means of a hyperlink using the HREF="#URL" attribute. Note the pound (#) sign before the URL. The pound sign used in this way indicates to the browser that the target location has been defined by the NAME=" ... " attribute.
SRC="URL"
This attribute defines the absolute or relative location (URL) of the document containing the contents of the layer.
TOP="n"
This attribute defines the layer's vertical position, measured in pixels, with respect to the top edge of the parent layer.
VISIBILITY="SHOW, HIDE or INHERIT"
This attribute will define whether the layer is initially visible or not.
WIDTH="n"
This attribute defines, in pixels or as a percentage of browser window width, the width of the layer.
Z-INDEX="n"
This attribute defines where in the layer stack that particular layer will be placed. A value of zero ("0") will be on the bottom. A value of one ("1") will be over that, etc.
This tag also accepts the following Event Handlers: onBlur
onFocus
onHelp
onLoad
onMouseDown
onMouseUp
onMouseOver
onMouseMove
onMouseOut
. onKeyPress
onKeyDown
onKeyUp
onResize
onRowEnter
onRowExit
onScroll
onSelect
onSelectStart