home *** CD-ROM | disk | FTP | other *** search
- <DIV ID=banner STYLE="position: absolute; left: 32; top: 9;">
- <IMG NAME=arrow SRC="arrow.gif" ALIGN=left>
- <FONT FACE="Arial, Helvetica" SIZE=+2>
- Exposing Page Elements in Communicator 4.0
- </FONT>
- </DIV>
-
- <BR><BR>
- <P>The <TT>DIV</TT> element is reflected as both
- <TT>document.layers['banner']</TT> and <TT>document.banner</TT> in
- Communicator 4.0.</P>
-
- <P>The <TT>IMG</TT> element, when contained within the <TT>DIV</TT>
- element is reflected as <TT>document.banner.document.images['arrow']</TT>
- and <TT>document.banner.document.arrow</TT>. It can also be accessed
- using the <TT>document.layers['banner']</TT> notation for the
- <TT>DIV</TT> parent layer. Its reflected attributes include:</P>
-
- <BLOCKQUOTE>
- <SCRIPT>
- document.writeln("<B>name:</B> ");
- document.writeln(document.banner.document.images['arrow'].name);
- document.writeln("<BR>");
- document.writeln("<B>src:</B> ");
- document.writeln(document.layers['banner'].document.images['arrow'].src);
- document.writeln("<BR>");
- document.writeln("<B>width:</B> ");
- document.writeln(document.banner.document.arrow.width);
- document.writeln("<BR>");
- document.writeln("<B>height:</B> ");
- document.writeln(document.layers['banner'].document.arrow.height);
- document.writeln("<BR>");
- </SCRIPT>
- </BLOCKQUOTE>
-