Html4newbies
Put your hands into html and php
Home
Privacy
About
Contact

Hosting Links
Hosting
Free Php Snippets
Php Snippets 1
Php Snippets 2
Html Tag Layer


LAYER - positioned content

Description :

The LAYER tag allows you to position blocks of contents. These blocks of positioned content are also called layers. Positioned blocks of content can overlap each other, be transparent or opaque, and be visible or invisible. They can also be nested. Use the LAYER tag to specify an absolute position for a block of content, and use the ILAYER tag to specify a relative position.

Syntax

<LAYER ID="layerName" LEFT="pixelPosition" TOP="pixelPosition" PAGEX ="pageX" PAGE"="pageY" SRC="file" Z-INDEX="n" ABOVE="layername" BELOW="layername" WIDTH="width" HEIGHT="height" CLIP="n,n,n,n" VISIBILITY="visibility" BGCOLOR="color" BACKGROUND="imageURL" OnMouseOver="JScode" OnMouseOut="JScode" OnFocus="JScode" OnBlur="JScode" OnLoad="JScode">....</LAYER>

Attributes

ID specifies the name of the layer, enabling other layers and JavaScript scripts to refer to it.
LEFT & TOP specifies the horizontal and vertical positions of positioned layers or the relative horizontal and vertical positions for inflow layers.
PAGEX & PAGEY specifies the horizontal and vertical positions of the layer relative to the document's window.
SRC specifies the pathname of a file that contains HTML-formatted content for the layer.
Z-INDEX specifies the stacking order of a layer. Allows a layer's z-order to be specified in terms of an integer. Layers with higher numbered values are stacked above those with lower ones. Only positive Z-INDEX values are allowed. The use of this attribute cannot be combined with the use of the ABOVE or BELOW attributes.
ABOVE specifies the layer immediately on top of a newly created layer in the stacking order; that is, the new layer is created just below the layer specified by layername. The use of this attribute cannot be combined with the use of the BELOW or Z-INDEX attributes.
BELOW identifies the layer immediately beneath the newly created layer in the stacking order; that is, the new layer is created just above the layer specified by layername. The named layer must already exist. The use of this attribute cannot be combined with the use of the ABOVE or Z-INDEX attributes.
WIDTH specifies the width of the layer's content. It controls the right margin for wrapping purposes. The value can be expressed as an integer pixel value or as a percentage of the width of the containing layer.
HEIGHT specifies the height of the layer's clipping region and serves as the reference for setting the relative height of children layers. The value can be expressed as an integer pixel value or as a percentage of the height of the containing layer (or of the window for a top-level layer).
CLIP specifies the clipping rectangle (viewable area) of the layer, which can be less than the width and height of the content of the layer. The value is a set of four numbers. Each of the four values represents numbers of pixels.
VISIBILITY specifies whether the layer is visible or not. A value of SHOW shows the layer. A value of HIDDEN hides the layer. A value of INHERIT causes the layer to have the same visiblity as its parent layer.
BGCOLOR specifies the background color of the layer.
BACKGROUND specifies an image to use as the background.
OnMouseOver & OnMouseOut specify which JacaScript code is executed when the mouse cursor enters (OnMouseOver) or leaves (OnMouseOut) the layer.
OnFocus & OnBlur specify which JavaScript code is executed when the layer gets (OnFocus) or loses (OnBlur) keyboard focus.
OnLoad specifies which JavaScript code is executed when the layer is loaded.

Copyright © 2002-2017 Html4newbies - HarlandScripts.com NetWork