Forum Moderators: open
I want to produce a mouseover effect. There's probably a script somewhere on the web I could find, IF ONLY I knew what to call it!
Here's the idea:
-TABLE-
thumbnail 1 FULL PICTURE DISPLAY OF the
thumbnail 2 THUMBAIL ON MOUSEOVER ELSEWHERE ON PAGE
thumbnail 3
thumbnail 4
Thank you ahead of time.
in a head of HTML you add.
function showgrateimage(imgshow)
{document.getElementById('image').src=imgshow;}
each <td>thubnail1</td>
you change for
<td onmouseover=showgrateimage('stars.gif')>thubnail1</td>
stars.gif is a image what should be shown in a large screen
Good luck to you
<script language="JavaScript">
function showlargeimage(imgshow)
{document.getElementById('image').src=imgshow;}
</script>
This is what I have in the table (simplified) so far:
<TABLE>
<TR>
<TD>
<!--THUMBNAILS-->
<img src="thumbnail1.jpg" onmouseover=showlargeimage('image1.jpg')><br>
<img src="thumbnail2.jpg" onmouseover=showlargeimage('image2.jpg')><br>
<img src="thumbnail3.jpg" onmouseover=showlargeimage('image3.jpg')><br>
<img src="thumbnail4.jpg" onmouseover=showlargeimage('image4.jpg')><br>
</TD>
<TD>
<!--IMAGE SCREEN-->
<img src='#' id='image'>
</TD>
</TR>
</TABLE>
Doesn't seem to work... not your fault, just that I'm dumb as a bucket of hammers!
<head>
<script language="JavaScript">
function showlargeimage(imgshow)
{document.getElementById('image').src=imgshow;}
</script>
</head>
<body>
<TABLE>
<TR>
<TD>
<!--THUMBNAILS-->
<img src="thumbnail1.jpg" onmouseover=showlargeimage('image1.jpg')><br>
<img src="thumbnail2.jpg" onmouseover=showlargeimage('image2.jpg')><br>
<img src="thumbnail3.jpg" onmouseover=showlargeimage('image3.jpg')><br>
<img src="thumbnail4.jpg" onmouseover=showlargeimage('image4.jpg')><br>
</TD><TD>
<!--IMAGE SCREEN-->
<img src='#' id='image'>
</TD>
</TR>
</TABLE>
</body>
all is ok
You need to change it like so
function showlargeimage(imgshow)
{document.getElementById('image').src=imgshow;
document.getElementById('image').style.display='block';
}
and img
<img src='#' id='image' style='display:none'>
Good luck to you