You are here: irt.org | FAQ | JavaScript | Table | Q606 [ previous next ]
Try something like:
<html>
<head>
<script language="JavaScript"><!--
function swapImage(name,image) {
if (document.images)
document.images[name].src = image;
}
//--></script>
</head>
<body>
<table><tr><td>
<a href="apage.html" onMouseOver="swapImage('myImage','on.gif')" onMouseOut="swapImage('myImage','off.gif')"><img src="off.gif" name="myImage" border="0" width="16" height="16"></a>
</td><td>
<a href="bpage.html" onMouseOver="swapImage('myotherImage','on.gif')" onMouseOut="swapImage('myotherImage','off.gif')"><img src="off.gif" name="myotherImage" border="0" width="16" height="16"></a>
</td></tr></table>
</body>
</html>