The answer depends on what you mean by 'gallery files'.
Which of the following is/are in the 'projects' folder: 'gallery.xml' file; the 'images' and 'thumbs' folders; the 'svcore' folder?
If the 'gallery.xml' file and the 'images' and 'thumbs' folders are in the 'projects' folder, then your embedding code should be:
<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "projects/";
flashvars.galleryURL = "gallery.xml";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
If the 'svcore' folder is also in the 'projects' folder, then the embedding code should be:
<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript">
var svCoreURL = 'projects/svcore/';
</script>
<script type="text/javascript" src="projects/svcore/js/simpleviewer.js"></script><script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "projects/";
flashvars.galleryURL = "gallery.xml";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
Use of the baseURL option can be found here: http://simpleviewer.net/simpleviewer/pr … .html#html
Use of an external 'svcore' folder can be found here: http://simpleviewer.net/simpleviewer/su … tml#svcore
Steven Speirs
SimpleViewer Support Team