Now I would like to also display a caption or description with each photograph. Right now I'm using an array like this:
var imageNum = 0; imageArray = new Array(); imageArray[imageNum++] = new imageItem(imageDir + "roma072.jpg"); imageArray[imageNum++] = new imageItem(imageDir + "roma073.jpg"); imageArray[imageNum++] = new imageItem(imageDir + "timo1.jpg"); var totalImages = imageArray.length;
I am having trouble looking on the web for the right syntax, if there is any, for adding title information that I can output later for each image in the array. For example, within this array, how can i add that the first image, "roma072.jpg" has a title or description of "Rome, 2008"?
Any help is much appreciated.