Hi all.
I already havea javascript function that updates an image when the thumbnail is hovered over. Now I would like to add a caption to the image, so that when the thumbnail is hovered over, the relevant caption is displayed in the “caption” div below. I have four thumbnails, each with different captions.
[B]My function so far:
<script type=”text/javascript”>
function update(url,index,isSuper)
{
document[‘PhotoBig’].src=url;
}
</script>
[B]Thumbnail div:
<div id=”thumbnail”>
<a onMouseOver=”update(‘images/educational/img1-large.jpg’, 0, false); return false;”>
<img src=”images/educational/img1.jpg”>
</a>
</div>
[B]Large image div:
<div id=”large”>
<img src=”images/educational/img3-large.jpg” name=”PhotoBig”>
<div id=”caption”>WANT CAPTION TO GO HERE</div>
</div>
Any help appreciated!
Many thanks.