Hi. I am just learning javascript and am making a website for my friend's photography. I've got a working slide show now where you can click next or previous to display image after image in sequence. I followed this tutorial:
http://www.webmonkey.com/tutorial/Make_a_JavaScript_Slideshow
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.
Thank you,
Rebecca