I want to "rollover" an image on a mouseover event, but the image is to be displayed in a different location from the mouse. The image will be in ('ImgBox') and the mouse can be in any cell in a specific column of a table -> giving diff. images.
My code follows, but doesn't work. Any help would be appreciated thanks.
The calling routine is
Happy new year to all.
cheers
Phil
My code follows, but doesn't work. Any help would be appreciated thanks.
Code:
function ShowImage(artImg) {
// document.getElementById("ImgBox").src=artImg;
// tried above code and in desperation I tried the following to no avail
alert (artImg);
}
function HideImage(){
// using a subdirectory off the main site folder
// tried it without the '/images/ - no effect
document.getElementById('ImgBox').src="/images/Namitjiras_Glen_Helen.jpg" width="390" height="312";
}
Code:
<td> <a href="#" onmouseover="ShowImage(src='images/MonksCowl.jpg')" onmouseout="HideImage()" > Commended </a> </td>
cheers
Phil
Comment