Change Language


Follow Navioo On Twitter

layer

Defines a layer container holding content.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
no 4.0-4.8 no no no

Example

This example displays two short text paragraphs with an ilayer between them:


<layer name="dogLayer" src="dogs.htm" left="350" top="350" height="100" width="100" />
			

Remarks

Netscape only. Use a div element instead of a layer.

Attribute Detail

Attribute IE Netscape Mozilla Opera Safari
above
[layer-name]
Name of the layer above the element.
no 4.0 no no no
 
background
[url]. Example values: "../images/blue-background.gif", etc.
Specifies the URL for the background image for the document or element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
below
[layer-name]
Name of the layer below the element.
no 4.0+ no no no
 
bgcolor
[color | "transparent"]. Example values: Red, #FF0000 (#RRGGBB color code for "red"), etc.
Specifies the background color for the document or element. Specify either a color name or RGB color.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
class
[class-name]. Example values: header-class, list-element, etc.
CSS class assigned to the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
clip
[top-left-x, top-left-y, bottom-left-x, bottom-left-y]
Specifies x,y coordinates of the upper left and lower right corners of the element.
no 4.0+ no no no
 
height
[number-of-pixels]
Height of the element (in pixels).
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
id
[element-id]
Unique identifier for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
left
[number-of-pixels]
Number of pixels that the element is offset from the left.
no 4.0+ no no no
 
name
[element-name]
Unique name identifier for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Specifies whether to "clip" the content of the layer if the content exceeds the layer boundaries, or leave the content as-is.
no 4.0+ no no no
 
pagex
[x-position-in-pixels]
Horizontal position of the element in the browser window.
no 4.0+ no no 1.0+
 
pagey
[y-position-in-pixels]
Vertical position of the element in the browser window.
no 4.0+ no no 1.0+
 
style
[style-name]
Inline style for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
title
[text-description]
Short text description for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
top
[number-of-pixels]
Number of pixels that the element is offset from the top.
4.0+ no no no 1.0+
 
Specifies whether the element is hidden or shown.
no 4.0+ no no no
 
width
[number-of-pixels | percentage]. Example values: 200px, 15%, etc.
Width of the element (pixels or percentage).
2.0+ 1.1+ 1.0+ 4.0+ 1.0+
 
z-index
[number]
Positive integer specifying where an element is stacked in relation to other layers.
no 4.0+ no no 1.0+
 

Examples -> Source code Demo online - > layer:

Ajax Javascript feed

↑ Grab this Headline Animator