First of all, do you want an alt attribute or do you want a title attribute? The alt acts like a title in IE giving a tool tip description onmouseover. All other browsers require the title attribute for this. In all browsers, including IE, the alt attribute provides alternate content when the image is unavailable or if images are not being rendered by the browser (for example a text reader).
Due to IE's odd behavior, it is generally best to use an empty title attribute with an image if only the true alt behavior is desired.
In any case, it is hard to say what to do exactly with this script but, this has a good chance of working:
Code:
//switch the image
document.images.imgslide.src=theimage[i][0];
document.images.imgslide.alt=theimage[i][2];
If you want true alt behavior, hard code the image tag to title="". If you want just one alt attribute for the entire show, hard code it to the image tag. If what you really want is tool tip type behavior:
Code:
//switch the image
document.images.imgslide.src=theimage[i][0];
document.images.imgslide.title=theimage[i][2];
Bookmarks