![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the news.xml file in Dreamweaver (File -> Open), to change the content of your gallery. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash News Scroller). After that, in the category '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"?>
<news>
<item>
<p class="caption">News 1</p>
<p class="date">18 Feb 2009</p>
<p class="content" link="empty.html" target="_blank">Aenean nonummy hendrerit mauris...</p>
</item>
<item>
<img src="photos/thumb01.jpg" width="75" height="56" align="right" float="true" />
<p class="caption">News 2</p>
<p class="date">19 Feb 2009</p>
<p class="content" link="empty.html" target="_self">Aenean nonummy hendrerit mauris...</p>
</item>
</news>
In this example, parent <news> tag contains two child tags <item> - two news. First news has three text blocks. Second news has three text blocks and a picture. Classes of style from CSS file is using to format the text. <p class="caption">News 1</p> Also you can format the text without CSS. To do this, use HTML tags. <p><![CDATA[<font face="Tahoma" color="#FF0000"><b>News 1</b></font>]]></p> Read more information about supported HTML tags and CSS properties. <news>Description <item>Description <p>Description Attributes
Optional attributes
<img>Description Attributes
Optional attributes
|