Help > Stack Photo Gallery > SWF Object > Configuring The Gallery
Stack Photo Gallery - Configuring the gallery
To start working simply paste object HTML into your page and setup xml configuration file. You can place configuration file anywhere on your server.
An XML file is used to configure the gallery. By editing the XML file, you can add or remove gallery images as well as edit multiple appearance and behavior settings. The format of the XML file is described below.
Gallery settings are described in the <settings></settings> tag of the XML file as follows: <parameter name> parameter value </parameter name>.
For example, the frame color is configured using the <frameColor>0xFFFFFF</frameColor> tag.
The image file information is contained in the <items> </items> structure.
|
<items>
|
item source — Image name;
description — Image description;
link — link to the web-page;
target — controls where the new document will be displayed
"_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.
XML file format
|
<gallery>
<settings>
<imagesFolder>images/</imagesFolder>
<caption color="0x000000" fontName="Arial"/> <frameColor>0xFFFFFF</frameColor> <bgImage alpha="100" source="images/bg.jpg"/> <image width="400" height="300"/> <imageScaleMode>fill</imageScaleMode> <visibleImages>4</visibleImages> <usePhotoNumbers>true</usePhotoNumbers> <translation back="BACK" gotoLink="Go to Link"/> <soundEffect>sounds/imageChangeEffect.mp3</soundEffect>
</settings>
<items>
<item source="1.jpg" description="Wonderful forest" link="http://flash-gallery.com" target="_blank" />
<item source="2.jpg" description="…"/> <item source="3.jpg" description="…"/> <item source="…"/> <item source="…"/> <item source="…"/> ………………………………………………
</ items>
</gallery> |





