Topic: Two simpleviewer gallery on one page
I do have two simpleviewer gallery on several website pages. I am using:
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "design3/header/header_www.xml";
var params = {};
params.wmode = "transparent";
simpleviewer.ready(function(){simpleviewer.load("box_slideshow","100%", "100%", "555555", true, flashvars, params);});
</script>
This is working fine for flash but give problems with the non-flash galleries. I have noticed that the variable flashvars is global for the page in the non-flash version but local in the flash galleries. This is annoying.
I have to use the next to get it working in the non-flash galleries:
<script type="text/javascript">
var flashvars1 = {};
flashvars1.galleryURL = "picturegallery/portugal/madeira_1.xml";
var params = {};
params.wmode = "transparent";
simpleviewer.ready(function(){simpleviewer.load("flashcontent","100%", "100%", "transparent", true, flashvars1, params);});
</script>
<script type="text/javascript">
var flashvars2 = {};
flashvars2.galleryURL = "design3/header/header_www.xml";
var params = {};
params.wmode = "transparent";
simpleviewer.ready(function(){simpleviewer.load("box_slideshow","100%", "100%", "555555", true, flashvars2, params);});
</script>
without the different flashvars variable the header_www.xml is used for both galleries in the non-flash ones.
This is not a nice solution and I think it will need a change in simpleviewer.js