Topic: Multiple AutoViewer Galleries on a web page?

Can I have 2 0r 3 autoviewer galleries on the same web page?  In different places?
I understand I can have multipler galleries selectable with a menu...but I want two or three separate galleries.

Thanks,

john

ps - using Autoviewer Pro...

Last edited by john givens (2012-02-23 23:10:53)

Re: Multiple AutoViewer Galleries on a web page?

Can I have 2 0r 3 autoviewer galleries on the same web page?  In different places?

Yes. To embed multiple galleries on a single page, embed each gallery in a <div> with a unique 'id' and give each gallery's SWFObject a unique name. Also, you can point each gallery to a different XML file by using the xmlURL option. For example, the following code could be used to embed two galleries on the same page:

<script type="text/javascript" src="swfobject.js"></script>

<div id="flashcontent1">AutoViewer requires JavaScript and the Flash Player.
<a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
<script type="text/javascript">
var fo1 = new SWFObject("autoviewer.swf", "viewer1", "800", "600", "8", "#181818");
fo1.addVariable("xmlURL", "gallery1.xml");
fo1.write("flashcontent1");
</script>

<div id="flashcontent2">AutoViewer requires JavaScript and the Flash Player.
<a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
<script type="text/javascript">
var fo2 = new SWFObject("autoviewer.swf", "viewer2", "800", "600", "8", "#181818");
fo2.addVariable("xmlURL", "gallery2.xml");
fo2.write("flashcontent2");
</script>
Steven Speirs
SimpleViewer Support Team.