Click to See Complete Forum and Search --> : onmouseover


esapo
02-24-2003, 08:42 PM
Hi!

I need help with the following.

I have a text that reference an image (lets say 'image.jpg') and I need that when the user put the mouse over the text, the image appears on the same page in a table in the botton on the page.

Any help will be appreciate

Regards,

pyro
02-24-2003, 09:36 PM
Something like this will work:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">

function mouseover()
{
document.getElementById("mytd").innerHTML="<img src=\"your.gif\">";
}

</SCRIPT>
</head>
<body>
<a href="#" onMouseOver="mouseover();"> Test </a>
<table border=1 width="100">
<tr>
<td id="mytd">
&amp;nbsp;
</td>
</tr>
</table>
</body>
</html>