Oh, it works alright. However, you may need to use a little javascript to pull the first image from the galleryarray array if you don't already know what it will be. This would of course have to be done after the PHP Photo Album script has sorted the galleryarray array, and after the targetdiv division is parsed by the browser. And, depending upon how you are populating the targetdiv division, you should probably just use that same method.
But if you know what the first image will be, and you are populating the targetdiv by overwriting its innerHTML, you can just hard code the image in there.
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks