I would like to add an "Alt Attribute" to each image.
All images on the page apper in the same spot (like a gallery) so one replaces the other;
using the function:
function rightImage(theImage){
if(imageNum>19){
imageNum=-1}
theImage.src=myImage[imageNum+1];
imageNum++
}
I tried adding alt to the array:
myImage= new Array(20)
myImage[0]="images/copyRight_f001.jpg"
myimage[0].setAttribute('alt','tuna with mango');
myImage[1]="images/copyRight_f002.jpg"
myimage[1].setAttribute('alt','scallop ceviche');
...
but then page gives an error
the page and source can be viewed at
www.sashagitin.com/food
Thank you very much for your help.