|
Layers |
Document Object Model |
DIV Tags |
Non-Standard Elements |
Style Sheets
Tags
The LAYER elements are not a part of the W3C web standards, and as such, are not supported by Netscape Gecko browsers. When Netscape Gecko browsers detect a LAYER, ILAYER, or NOLAYER tag in the source code, it will ignore it.
To achieve the same effect, web developers should use FRAME or IFRAME tags. If outside content is being included in the page with the src attribute in the LAYER tag, the IFRAME tag with the same src attribute and value can be used instead. For example:
Netscape 4 | Netscape 6 |
| <LAYER SRC="test.html"></LAYER> |
<IFRAME SRC="test.html"></LAYER> |
It is interesting to note that the browser will ignore the tag that it does
not support leaving the other tag free to perform the specified action.
For instance, Netscape 4 does not support the IFRAME tag, while Netscape 6
does not support the LAYER tag. The following example will pull in external
content into an HTML page.
<IFRAME
SRC="test.html"> <LAYER
SRC="test.html">
</LAYER> </IFRAME> |
The above was an example of nesting a LAYER tag within an IFRAME tag.
However, the order of the tags does not matter. The following also holds
true.
<LAYER
SRC="test.html">< BR>
<IFRAME="test.html">
</IFRAME> </LAYER> |
Alternately, tags need not be layered at all. The following example
demonstrates this.
The Netscape 4 Layer DOM is not supported within Netscape Gecko browsers. Features like document.layers[] will not work.
For more information, refer
to:
Updating DHTML: Web Pages for next generation browsers
|