![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the header.xml file in Dreamweaver (File -> Open), to change the content of your header. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Sun Header with Menu). After that, in the category of 'General', click the 'Edit' button near the 'Source' field. The following example shows the basic structure of the content XML file: <?xml version="1.0" encoding="utf-8"?>
<header>
<slides>
<img src="photos/photo1.jpg" title="Title 1" />
<img src="photos/photo2.jpg" title="Title 2" />
<img src="photos/photo3.jpg" title="Title 3" />
<img src="photos/photo4.jpg" title="Title 4" />
</slides>
<menu>
<item caption="Root item 1>
<item caption="Sub item 1-1" link="empty.html" target="_self" />
<item caption="Sub item 1-2" link="empty.html" target="_self" />
</item>
<item caption="Root item 2">
<item caption="Sub item 2-1" link="empty.html" />
<item caption="Sub item 2-2" link="empty.html" />
<item caption="Sub item 2-3" link="empty.html" />
</item>
<item caption="Root item 3" link="empty.html" target="_blank" />
</menu>
</header>
Headline, tag <header>, contains two child tags <slides> and <menu>. In this example, header contains 4 slides and menu with three items. Each menu has a submenu, except the last one. The last item 'Root item 3' hasn't anything. <header>Description <slides>Description <img>Description Attributes
<menu>Description <item>Description Attributes
|