Dreamweaver Extensions

Working with XML content

Open 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
Main tag and contains the structure of the menu.

<item>

Description
Contains the menu item.

Attributes

  • caption, The caption of the menu item.
  • color_1, The first parameter for a gradient background of the decorative element.
  • color_2, The second parameter for a gradient background of the decorative element.

  • link, The URL from which you can obtain the document.
  • target, Specifies the window or HTML frame into which the document should be loaded. You can enter the name of a specific window or select from the following reserved target names:
    • _self specifies the current frame in the current window.
    • _blank specifies a new window.
    • _parent specifies the parent of the current frame.
    • _top specifies the top-level frame in the current window.