1

Topic: Two instances of Tiltviewer on a single page

Is it possible to load Tiltviewer twice on a single page?
Just using the following code twice did not work out:

<script type="text/javascript">
        var fo = new SWFObject("TiltViewer.swf", "viewer", "950px", "1300px", "9", "#000000");           
                fo.addParam("wmode", "transparent"); 
                fo.addVariable("bkgndTransparent", "true"); 
                fo.addVariable("showFullscreenOption", "true");
        fo.addParam("allowFullScreen","true");
        fo.write("flashcontent");           
</script>   

What do I have to adjust to make using two instances of tiltviewer possible?

Regards,
Raphael

Re: Two instances of Tiltviewer on a single page

Yes add another div with an id of flashcontent2 and change fo.write("flashcontent"); to fo.write("flashcontent2"); in your second javascript section and in both of your javascript sections add fo.addVariable("xmlURL", "gallery.xml"); to the first and  fo.addVariable("xmlURL", "gallery2.xml");

Here is the simpleviewer example of two viewers in one page just modify it with the tiltviewer tags
http://www.simpleviewer.net/simpleviewe … viewer_x2/

Mike Richards
SimpleViewer Support Team.