Alan, I think this time I've got it right!
The attached is the updated file. I've tried it with a folder of images and a sub-folder of images, that is: folder test contains 4 images and a folder called other, which contains 2 images.
JAlbum was set to link to originals via scaled images and the Random Slide Show tool was set to include originals and slides images.
The output file is:
var imagePath = new Array()
var thumbnailPage = new Array()
imagePath[0]="1800s Pyramid.jpg";
Originals_thumbnailPage[0]="index.html";
imagePath[1]="Angry Clouds_copy.jpg";
Originals_thumbnailPage[1]="index.html";
imagePath[2]="Bird by the Ocean.jpg";
Originals_thumbnailPage[2]="index.html";
imagePath[3]="Coit Tower.jpg";
Originals_thumbnailPage[3]="index.html";
imagePath[4]="other/other 1.jpg";
NotSlides_thumbnailPage[4]="other/index.html";
imagePath[5]="other/other 2.jpg";
NotSlides_thumbnailPage[5]="other/index.html";
imagePath[6]="other/slides/other 1.jpg";
thumbnailPage[6]="other/index.html";
imagePath[7]="other/slides/other 2.jpg";
thumbnailPage[7]="other/index.html";
imagePath[8]="slides/1800s Pyramid.jpg";
thumbnailPage[8]="index.html";
imagePath[9]="slides/Angry Clouds_copy.jpg";
thumbnailPage[9]="index.html";
imagePath[10]="slides/Bird by the Ocean.jpg";
thumbnailPage[10]="index.html";
imagePath[11]="slides/Coit Tower.jpg";
thumbnailPage[11]="index.html";
ImageCount = 12;
var randomImage = Math.floor(Math.random() * (ImageCount - 1)) ; // The random image number;
slideshowContent = '<a href= "' + thumbnailPage[randomImage] + '"><img src="' + imagePath[randomImage] + '" /><br />Click on the image to go to its (home) thumbnails page</a><br />Image: ' + imagePath[randomImage];
function getNext() {;
window.location = "random_slide_show.html";
};
Sorry for the problems to date, let me know if this works on your system or not.
Sorry, I left in some debug code - working on it too late at night!
See next entry from me for the corrected file
Message was edited by: RobM