Dreamweaver Extensions

Working with XML content

Open the banner.xml file in Dreamweaver (File -> Open), to change the content of your banner. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Banner). 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"?>
<banner>
    <item image="photos/photo01.jpg" align="lt" alt="SELECT SLIDE 1" link="empty.html" target="_blank">
        <![CDATA[
            <font face="Impact" size="24" color='#FFFFFF'>Caption 1</font>
        ]]>
    </item>
    <item image="photos/photo02.jpg" align="lb" alt="SELECT SLIDE 2" link="empty.html" target="_blank">
        <![CDATA[
            <font face="Impact" size="24" color='#FFFFFF'>Caption 2 - Line 1</font>
            <br>
            <font face="Myriad Pro" size="14" color='#F87A65'>Caption 2 - Line 2</font>
        ]]>
    </item>
    <item image="photos/photo03.jpg" align="rb" alt="SELECT SLIDE 3" link="empty.html" target="_blank">
        <![CDATA[
            <font face="Impact" size="24" color='#FFFFFF'>Caption 3</font>
        ]]>
    </item>
</banner>

In this example, parent <banner> tag contains 3 child tags <item>. Also to each slide you can attach a hyperlink and a special font.

<banner>

Description
Main tag and contains the description of the component.

<item>

Description
Contains the path to the image file and hyperlink. There is a caption inside the tag. You can edit the caption with the help of HTML tags. To do this, you need put in brackets it <![CDATA[ ...your html... ]]>. Read more information about supported HTML tags.

Note: If you use 'Use embedded fonts' in the extension parameters, which allows to use built-in fonts, you need to edit file fonts.xml according the used fonts in tag <font>. This fonts are uploaded from a special SWF file. Or you can turn off this option in FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Banner).

Attributes

  • image, The absolute or relative URL of the image file. A relative path must be relative to the HTML file. Absolute URLs must include the protocol reference, such as http://.
  • align, A string that specifies how to align the image. Acceptable values:
    • lt left and top
    • lb left and bottom
    • rt right and top
    • rb right and bottom
  • alt, The alt caption of the slide.
  • link, The URL from which to 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.