home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap15 / dun15_1.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  1.4 KB  |  41 lines

  1. <IMG NAME=arrow SRC="arrow.gif" ALIGN=left>
  2.  
  3. <DIV ID=banner STYLE="position: absolute; left: 72; top: 9;">
  4.   <FONT FACE="Arial, Helvetica" SIZE=+2>
  5.     Exposing Page Elements in Communicator 4.0
  6.   </FONT>
  7. </DIV>
  8.  
  9. <BR><BR>
  10. <P>The <TT>DIV</TT> element is reflected as both
  11. <TT>document.layers['banner']</TT> and <TT>document.banner</TT> in
  12. Communicator 4.0. Its reflected attributes include:</P>
  13.  
  14. <BLOCKQUOTE>
  15. <SCRIPT>
  16.   document.writeln("<B>id:</B> " + document.banner.id + "<BR>");
  17.   document.writeln("<B>left:</B> " + document.layers['banner'].left +
  18.                    "<BR>");
  19.   document.writeln("<B>top:</B> " + document.layers['banner'].top +
  20.                    "<BR>");
  21. </SCRIPT>
  22. </BLOCKQUOTE>
  23.  
  24. <P>The <TT>IMG</TT> element is reflected as both
  25. <TT>document.images['arrow']</TT> and <TT>document.arrow</TT> in
  26. Communicator 4.0.  Its reflected attributes include:</P>
  27.  
  28. <BLOCKQUOTE>
  29. <SCRIPT>
  30.    document.writeln("<B>name:</B> " + document.images['arrow'].name +
  31.                     "<BR>");
  32.    document.writeln("<B>src:</B> " + document.images['arrow'].src +
  33.                     "<BR>");
  34.    document.writeln("<B>width:</B> " + document.arrow.width + "<BR>");
  35.    document.writeln("<B>height:</B> " + document.arrow.height + "<BR>");
  36. </SCRIPT>
  37. </BLOCKQUOTE>
  38.  
  39. <P>The <TT>FONT</TT> element is not reflected into JavaScript in
  40. Communicator 4.0.</P>
  41.