Topic: problem with multiple galleries in one html-page

Hello Miker,

I'm triing to embed more than one auto viewer gallery in one html page. Though I changed the div id, as suggested in the FAQ, it doesn't work: The different galleries still show the same pictures. I keep the pictures for all the galleries in one folder and there is only one .js and one .swf file, too. Is that right?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>SimpleViewer</title>
<!-- Download SimpleViewer at www.airtightinteractive.com/simpleviewer -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
<!--
.text {
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    color: #333;
    background-color: #FFF;
    vertical-align: middle;
}
-->
</style></head>
<body>

<div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.</div>    
    <script type="text/javascript">
        var fo = new SWFObject("autoviewer.swf", "viewer", "600", "400", "7", "#ffffff");    
        fo.addVariable("preloaderColor", "0xffffff");
        fo.addVariable("xmlDataPath", "gallery.xml");    
        fo.write("flashcontent");    
    </script>

<div id="flashcontent2"><p>SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.</p>
</div>    
    <script type="text/javascript">
        var fo = new SWFObject("autoviewer.swf", "viewer", "600", "400", "7", "#ffffff");    
        fo.addVariable("preloaderColor", "0xff00ff");
        fo.addVariable("xmlDataPath", "gallery2.xml");    
        fo.write("flashcontent2");    
    </script>    
</body>
</html>

Is there anything wrong with the code?

Thanks
Anna

Re: problem with multiple galleries in one html-page

The code validates and everything looks right...  could you post the url?

Mike Richards
SimpleViewer Support Team.

Re: problem with multiple galleries in one html-page

with url you mean the path to where the files are located?

the structure ist the following:
mainfolder with
gallery.xml
gallery2.xml
index.html
swfobject.js
images (folder)
autoviewer.swf

does that help you? how else can i show you the url?
thanks
anna

Re: problem with multiple galleries in one html-page

By url I mean the addres www.yoursite.com/thegallery

Mike Richards
SimpleViewer Support Team.

Re: problem with multiple galleries in one html-page

there you go smile

http://www.annablombach.de/Daten/index.html

thx for helping!
anna

Re: problem with multiple galleries in one html-page

it looks like the galleries work fine, it's just the image urls in the XMLs. For example this folder, images/gallery1/, does not exist. If you click the next button on the galleries you will see some images are loading and some aren't. All you need to do is check that all the xmls point correctly to the images.

Mike Richards
SimpleViewer Support Team.