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