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.  
  4.  
  5. <DIV ID=banner STYLE="position: absolute; left: 72; top: 9;">
  6.  
  7.   <FONT FACE="Arial, Helvetica" SIZE=+2>
  8.  
  9.     Exposing Page Elements in Communicator 4.0
  10.  
  11.   </FONT>
  12.  
  13. </DIV>
  14.  
  15.  
  16.  
  17. <BR><BR>
  18.  
  19. <P>The <TT>DIV</TT> element is reflected as both
  20.  
  21. <TT>document.layers['banner']</TT> and <TT>document.banner</TT> in
  22.  
  23. Communicator 4.0. Its reflected attributes include:</P>
  24.  
  25.  
  26.  
  27. <BLOCKQUOTE>
  28.  
  29. <SCRIPT>
  30.  
  31.   document.writeln("<B>id:</B> " + document.banner.id + "<BR>");
  32.  
  33.   document.writeln("<B>left:</B> " + document.layers['banner'].left +
  34.  
  35.                    "<BR>");
  36.  
  37.   document.writeln("<B>top:</B> " + document.layers['banner'].top +
  38.  
  39.                    "<BR>");
  40.  
  41. </SCRIPT>
  42.  
  43. </BLOCKQUOTE>
  44.  
  45.  
  46.  
  47. <P>The <TT>IMG</TT> element is reflected as both
  48.  
  49. <TT>document.images['arrow']</TT> and <TT>document.arrow</TT> in
  50.  
  51. Communicator 4.0.  Its reflected attributes include:</P>
  52.  
  53.  
  54.  
  55. <BLOCKQUOTE>
  56.  
  57. <SCRIPT>
  58.  
  59.    document.writeln("<B>name:</B> " + document.images['arrow'].name +
  60.  
  61.                     "<BR>");
  62.  
  63.    document.writeln("<B>src:</B> " + document.images['arrow'].src +
  64.  
  65.                     "<BR>");
  66.  
  67.    document.writeln("<B>width:</B> " + document.arrow.width + "<BR>");
  68.  
  69.    document.writeln("<B>height:</B> " + document.arrow.height + "<BR>");
  70.  
  71. </SCRIPT>
  72.  
  73. </BLOCKQUOTE>
  74.  
  75.  
  76.  
  77. <P>The <TT>FONT</TT> element is not reflected into JavaScript in
  78.  
  79. Communicator 4.0.</P>
  80.  
  81.