Topic: Two galleries on same page and not working

Hi,

I have two galleries on same page and only last one is working. I tested them separately and worked fine. Have you any ideas what to do?

Re: Two galleries on same page and not working

You have to make sure each script (gallery) has a unique number.  Add a number to each script after "flashcontent" as in the two gallery example below.


<div id="flashcontent1">AutoViewer requires JavaScript and the Flash Player. <a href="/getflashplayer/">Get Flash here.</a> </div>
    <script type="text/javascript">
        var fo = new SWFObject("autoviewer.swf", "autoviewer", "100%", "50%", "8", "#181818");

        //Optional Configuration
        fo.addVariable("langOpenImage", "Open Image in New Window");
        fo.addVariable("langAbout", "About");
        fo.addVariable("xmlURL", "gallery.xml");

        fo.write("flashcontent1");

    </script>





<div id="flashcontent2">AutoViewer requires JavaScript and the Flash Player. <a href="/getflashplayer/">Get Flash here.</a> </div>
    <script type="text/javascript">
        var fo = new SWFObject("autoviewer.swf", "autoviewer", "100%", "50%", "8", "#181818");

        //Optional Configuration
        fo.addVariable("langOpenImage", "Open Image in New Window");
        fo.addVariable("langAbout", "About");
        fo.addVariable("xmlURL", "gallery.xml");

        fo.write("flashcontent2");

    </script>