Topic: How do I link directly to a specific image in a gallery?

I want to link directly to a specific image in a gallery. For example, if I want to link to image #3 on http://www.simpleviewer.net/simpleviewe … index.html, what would the URL be? I tried adding "?id=3" but it didn't work.

I tried adding the following script to the page I'm working on but that didn't work either: http://www.simpleviewer.net/simpleviewe … x.php?id=1

        <script type="text/javascript">
   
        var fo = new SWFObject("viewer.swf", "viewer", "100%", "600", "8", "#000000");
       
        <?php
            foreach($_GET as $variable => $value) {
                echo "fo.addVariable('firstImageIndex', '$value');";
            }
        ?>
       
        // SIMPLEVIEWER CONFIGURATION OPTIONS
        // To use an option, uncomment it by removing the "//" at the start of the line
        // For a description of config options, go to:
        // http://www.airtightinteractive.com/simp … tions.html
       
        //fo.addVariable("xmlDataPath", "gallery.xml");
        //fo.addVariable("langOpenImage", "Open Image in New Window");
        //fo.addVariable("langAbout", "About");   
        //fo.addVariable("preloaderColor", "0xFFFFFF");
       
        fo.write("flashcontent");   
        </script>

Re: How do I link directly to a specific image in a gallery?

firstImageIndex is a pro only option in SimpleViewer 2.

http://simpleviewer.net/simpleviewer/su … tions.html

http://simpleviewer.net/simpleviewer/pr … ml#general

Mike Richards
SimpleViewer Support Team.

Re: How do I link directly to a specific image in a gallery?

Oh, okay. Thanks!