![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the gallery.xml file in Dreamweaver (File -> Open), to change the content of your RainbowGallery. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Rainbow Image Gallery). 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"?>
<gallery>
<img src="photos/photo01.jpg">
<thumb highlight="0xD80303">
<item color="0x42145F" font="Myriad Pro" font_size="14">TITLE</item>
<item color="0x858585" margin_top="-5">Caption line 1</item>
<item>Caption line 2</item>
</thumb>
<title bg_color="0xD80303">TITLE</title>
<description>
<item>Description</item>
<item margin_top="10" font="Myriad Pro" font_size="14" link="empty.html" target="_self">LINK</item>
</description>
</img>
<img src="photos/photo02.jpg">
<thumb highlight="0x007DBE">
<item color="0x42145F" font="Myriad Pro" font_size="14">TITLE</item>
<item color="0x858585" margin_top="-5">Caption line 1</item>
<item>Caption line 2</item>
</thumb>
<description>
<item font_size="14" color="0xA0A0A0">Description line 1</item>
<item>Description line 2</item>
</description>
</img>
<img src="photos/photo03.jpg">
<thumb highlight="0xEE9600">
<item color="0x42145F" font="Myriad Pro" font_size="14">TITLE</item>
<item color="0x858585" margin_top="-5">Caption line 1</item>
<item>Caption line 2</item>
</thumb>
<title bg_color="0xEE9600">TITLE</title>
</img>
<img src="photos/photo04.jpg">
<thumb highlight="0x909192">
<item color="0x42145F" font="Myriad Pro" font_size="14">TITLE</item>
<item color="0x858585" margin_top="-5">Caption line 1</item>
<item>Caption line 2</item>
</thumb>
</img>
</gallery>
In this example you can see 4 images. You can compare that some of them have title and description others are not. Also you can specify an individual thumbnail highlight for each slide, for example <thumb highlight="0xEE9600">. You can write any number of paragraphs in the description. <gallery>Description <img>Description Attributes
<thumb>Description Exmaple: <thumb highlight="0xEE9600"><item color="0x42145F" font="Myriad Pro" font_size="14">TITLE</item></thumb> Optional attributes
The following attribute are optional for tag <item>.
<title>Description Exmaple: <title bg_color="0xEE9600">TITLE</title> Optional attributes
<description>Description Exmaple: <description><item color="0xA0A0A0" margin_top="5">Text</item></description> If you specify for tag <item> additional attribute link, so the text will be displayed as hyperlink. For exmaple: Optional attributes
The following attribute are optional for tag <item>.
|