Topic: Howto: Start with an random image...

After the generous help of Felix, and the brilliant new version, i am proud to announce the way to get starting with a random image:

Modify your HTML code as follows (add the bold instructions):

<script type="text/javascript">
var randomnumber=Math.floor(Math.random()*10);
var fo = new SWFObject("ext/viewer.swf", "viewer", "700", "700", "7", "#F1F2F3");
                fo.addVariable("firstImageIndex", randomnumber);
                fo.addVariable("preloaderColor", "0xffffff");
                fo.addVariable("xmlDataPath", "gallery.xml");
                fo.addVariable("fontColor", "0x919191");
                fo.addVariable("footer", "");
             </script><script type="text/javascript" language="javascript">

In this example I had 9 pictures to display, if you have got mor or less, change Math.random()*n);
N being one more than the number of images.