![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the header.xml file in Dreamweaver (File -> Open), to change the content of your menu. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Rainbow Header with Menu). After that, in the category of 'General', click the 'Edit' button near the 'Menu source' field. The following example shows the basic structure of the content XML file: <?xml version="1.0" encoding="utf-8"?>
<navigation>
<item caption="Root item 1" color_1="FF5500" color_2="DE4A00">
<item caption="Sub item 1-1" link="empty.html" target="_blank" />
<item caption="Sub item 1-2" link="empty.html" target="_blank" />
</item>
<item caption="Root item 2" color_1="FF5500" color_2="DE4A00">
<item caption="Sub item 2-1" link="empty.html" target="_self" />
<item caption="Sub item 2-2">
<item caption="Sub item 2-2-1" link="empty.html" />
<item caption="Sub item 2-2-2" link="empty.html" />
</item>
<item caption="Sub item 2-3" link="empty.html" target="_self" />
</item>
<item caption="Root item 3" color_1="FF5500" color_2="DE4A00" link="empty.html" target="_blank" />
</navigation>
In this example, parent <navigation> tag contains three child tags <item>. First root item has one sub menu with two items. The second root item is consists of the three-level menu. The last item has no sub menu. All root items hve attributes color_1 and color_2. These two parameters are used for a gradient background of the decorative element, which is used in the root menu and is located above the caption. <navigation>Description <item>Description Attributes
|