![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the banner.xml file in Dreamweaver (File -> Open), to change the content of your Banner Rotator. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> XML Banner Rotator). 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"?>
<component>
<slide src="photos/photo01.jpg">
<title x="500" y="150" width="250" align="right">
<item color="0xFFFFFF" font="Myriad Pro" font_size="32" margin_bottom="-10">TITLE 1</item>
<item color="0xC5C5C5" font="Myriad Pro" font_size="24">title second line</item>
</title>
<description>
<item color="0xC68608" font="Tahoma" font_size="11" bold="true">Description 1</item>
<item color="0x808080" font="Tahoma" font_size="10" align="justify">Description text</item>
</description>
</slide>
<slide src="photos/photo02.jpg" thumb="photos/thumb02.jpg">
<title x="20" y="130" width="350" align="left">
<item color="0xFFFFFF" font="Myriad Pro" font_size="36" margin_bottom="-10" shadow="true">TITLE 2</item>
<item color="0x0255e2" font="Myriad Pro" font_size="24">title second line</item>
<item color="0xFFFFFF" font="Myriad Pro" font_size="18" margin_top="-10">title third line</item>
</title>
<description>
<item color="0xC68608" font="Tahoma" font_size="11" bold="true">Description 2</item>
<item color="0x808080" font="Tahoma" font_size="10" align="justify">Description text</item>
<item link="empty.html" target="_self" color="0xC68608" highlight="0x4783CB" font="Tahoma" font_size="11" margin_top="-3">Read more</item>
</description>
</slide>
</component>
In this example you can see 2 slides. Each slide consists of two sections. First section is for titles and second is for description. For example let's take first slide. In the first section it has two titles. In the head of these titles you can see coordinates (x="500" y="150"), width (width="250") and alignment (align="right") that are specified for both these two titles. And for each title are specified its own color, font, size. Also you can see a bottom margin for the first title (margin_bottom="-10"). In second section it has two description lines. First description line has its own color (color="0xC68608"), font (font="Tahoma"), size (font_size="11") and there is specified that this line is bold (bold="true"). Second description line has either its own color, font, size but also it has an alignment (align="justify"). Second slide is almost the same but it has one difference, lets have a look at the third line in the description. It is a hyperlink (link="empty.html" target="_self"), it has color (color="0xC68608"), it has also a highlight color (highlight="0x4783CB"), font (font="Tahoma"), font size (font_size="11") and top margin (margin_top="-3"). <component>Description <slide>Description Attributes
Optional attributes
<title>Description <description>Description If you specify for tag <item> additional attribute link, so the text will be displayed as hyperlink. For exmaple: The following attribute are optional for tag <item>.
|