Hi there,
I'm sure someone can help me with this simple fix. I am putting a site together for a friend and I found a Javascript code that I'm using which basically causes an image to enlarge on mouse rollover.
The website, which I just started, is:
Home 2
What I'm trying to do is get the larger image to appear a little more to the right than it currently does, so it is not right on top of the thumbnails.
I hope someone can tell me what code (and where) I need to add to accomplish this. I'm quite new at this so I really need specific instruction.
Thanks in advance for your help!
Here is the code for the onmouseover routine:
Code:
<head>
<script language="JavaScript">
function showlargeimage(imgshow)
{document.getElementById('image').src=imgshow;}
function showlargeimage(imgshow)
{document.getElementById('image').src=imgshow;
document.getElementById('image').style.display='block';
}
</script>
</head>
<body>
<TABLE>
<TR>
<TD>
<!--THUMBNAILS-->
<img src="thumbnail1.jpg" onmouseover=showlargeimage('image1.jpg')><br> <br>
<img src="thumbnail2.jpg" onmouseover=showlargeimage('image2.jpg')><br> <br>
<img src="thumbnail3.jpg" onmouseover=showlargeimage('image3.jpg')><br> <br>
<img src="thumbnail4.jpg" onmouseover=showlargeimage('image4.jpg')><br> <br>
<img src="thumbnail5.jpg" onmouseover=showlargeimage('image5.jpg')><br> <br>
</TD>
<TD>
<!--image SCREEN-->
<img src='#' id='image'>
<img src='#' id='image' style='display:none'>
</TD>
</TR>
</TABLE>
</body>