<ilayer> (Inflow Layer)
This Netscape-specific element allows the definition of overlapping content layers that can be positioned, hidden or shown, rendered transparent or opaque, reordered front to back, and nested. An inflow layer is a layer with a relative position that appears where it would naturally occur in the document, in contrast to a general layer, which might be positioned absolutely regardless of its location in a document. The functionality of layers is available using CSS positioning, and page developers are advised not to use this element.
Syntax (Netscape 4 Only)
<ilayer
above="layer"</ilayer>
background="url of image"
below="layer"
bgcolor="color name | #RRGGBB"
class="class name(s)"
clip="x1, y1, x2, y2"
height="percentage | pixels"
id="unique alphanumeric identifier"
left="pixels"
name="string"
pagex="pixels"
pagey="pixels"
src="url of layer contents"
style="style information"
top="pixels"
visibility="hide | inherit | show"
width="percentage | pixels"
z-index="number"
Element Specific Attributes
- above
- This attribute contains the name of the layer to be rendered above the current layer.
- background
- This attribute contains the URL of a background image for the layer.
- below
- This attribute contains the name of the layer to be rendered below the current layer.
- bgcolor
- This attribute specifies a layer's background color. Its value can be either a named color or a color specified in the hexadecimal #RRGGBB format.
- clip
- This attribute specifies the clipping region or viewable area of the layer. All layer content outside that rectangle will be rendered as transparent. The clip rectangle is defined by two x,y pairs: top x, left y, bottom x, and right y. Coordinates are relative to the layer's origin point, 0,0 in its top-left corner.
- height
- This attribute specifies the height of a layer in pixels or percentage values.
- left
- This attribute specifies in pixels the horizontal offset of the layer. The offset is relative to its parent layer if it has one or to the left page margin if it does not.
- name
- This attribute assigns the layer a name that can be referenced by programs in a client-side scripting language. The id attribute also can be used.
- pagex
- This attribute specifies the horizontal position of the layer relative to the browser window.
- pagey
- This attribute specifies the vertical position of the layer relative to the browser window.
- src
- This attribute is used to set the URL of a file that contains the content to load into the layer.
- style
- This attribute specifies an inline style for the layer.
- top
- This attribute specifies in pixels the top offset of the layer. The offset is relative to its parent layer if it has one or the top page margin if it does not.
- visibility
- This attribute specifies whether a layer is hidden, shown, or inherits its visibility from the layer that includes it.
- width
- This attribute specifies a layer's width in pixels.
- z-index
- This attribute specifies a layer's stacking order relative to other layers. Position is specified with positive integers, with 1 indicating the bottommost layer.
Example
<p>Content comes before.</p>
<ilayer name="background" bgcolor="green">
<p>Layered information goes here.</p>
</ilayer>
<p>Content comes after.</p>
Compatibility
No Standards
Netscape 4, 4.5-4.8
Notes
Page developers are strongly encouraged not to use this element. Netscape dropped this element for browser versions 6.0 and higher. Its inclusion in this book is for support of existing documents only.