SimpleViewer 1.9 - Data Customization Options
This document applies to SimpleViewer version 1.9. SimpleViewer has been upgraded to version 2.3.0. View upgrade information.
This section is for advanced users who wish to customize the SimpleViewer file structure or XML data source.
To Customize File Structure
To load images or thumbs from different folders than the default, use the imagePath and thumbPath attributes in the XML document. (See a list of all XML options here.)
- imagePath is a relative or absolute path to images folder. Relative paths are relative to the HTML document that contains SimpleViewer. Note that this path should include a trailing forward slash (for example: imagePath="my_image_folder/").
- thumbPath is a relative or absolute path to thumbnail images folder. Relative paths are relative to the HTML document that contains SimpleViewer. Note that this path should include a trailing forward slash (for example: thumbPath="my_thumb_folder/").
To Customize XML Data Source
To load XML image data from a different source than the default, add the xmlDataPath variable to the FlashObject code. Set the value of the variable to point to your custom XML data source (the XML data source can be an XML document, or a script that produces an XML document). xmlDataPath is an absolute or relative path to an XML data source. Note that relative paths are relative to the HTML document that contains SimpleViewer.
var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#181818");