Topic: same images in two simpleviewer gallerys [SOLVED]
I want to see two ore more different gallerys on one Site.
But in both gallerys i see the same images.
WHY??
i've build a testpage: http://www.automobiles-kulturgut.org/html/_test.html
You are not logged in. Please login or register.
SimpleViewer Forum → SimpleViewer v2 → same images in two simpleviewer gallerys [SOLVED]
I want to see two ore more different gallerys on one Site.
But in both gallerys i see the same images.
WHY??
i've build a testpage: http://www.automobiles-kulturgut.org/html/_test.html
As well as embedding each gallery into a container with a unique 'id', you need to give each gallery's 'flashvars' variable a unique name.
For example, you could embed two galleries into a web page using code such as the following (note the use of 'flashvars1' and 'flashvars2'):
<script type="text/javascript" src="gallery1/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars1 = {};
flashvars1.baseUrl = "gallery1/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container1", "100%", "100%", "222222", true, flashvars1);
});
</script>
<div id="sv-container1"></div>
<script type="text/javascript">
var flashvars2 = {};
flashvars2.baseUrl = "gallery2/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container2", "100%", "100%", "222222", true, flashvars2);
});
</script>
<div id="sv-container2"></div>
It works :D
Thank you for help
You're welcome.
SimpleViewer Forum → SimpleViewer v2 → same images in two simpleviewer gallerys [SOLVED]
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.