x, however, uses a different syntax to address forms in layers. To work
properly in Netscape 4.x, the code must look like the following:
document.layers[???apDiv3???].document.formC.;
hidden1.value=document.layers[???apDiv1???].;
document.formA.text1.value
To make the code cross-browser compatible, you can use an initialization function that allows for the differences,
or you can build the code into the onClick function. (For more information about building crossbrowser
??“compatible code, see Chapter 30.)
Creating Your Page Design with AP Elements
Although most modern Web layouts employ AP elements, some legacy pages still rely on table-based layouts.
Dreamweaver enables you to get the best of both worlds by making it possible for you to use AP elements
to design complex page layouts, and then to transform those AP elements into tables that can be
viewed in earlier browsers. Designing this way has some limitations??”you can??™t, for example, actually place
AP element items on top of one another. Nevertheless, Dreamweaver??™s capability to convert AP elements to
tables (and tables to AP elements) enables you to create complex layouts with ease.
NOTE NOTE
390
Adding Advanced Design Features Part III
Using the Tracing Image
Page-layout artists are often confronted with Web-page designs that have been mocked up in a graphics
program.
Pages:
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771