קיצר קח את הקוד ... שפר אותו
קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test</title>
<script language="javascript">
function showHideTable(menuId){
var obj=document.getElementById(menuId)
obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible")
}
</script>
<style type="text/css">
<!--
div.menu
{
position:absolute;
visibility:hidden
}
-->
</style>
</head>
<body>
<table>
<tr>
<td>
<a href="#" onClick="showHideTable('1')">Products</a><br>
<div class="menu" id="1">
<a href="1.html">prod 1</a><br>
<a href="2.html">prod 2</a><br>
<a href="3.html">prod 3</a><br>
</div>
</td>
<td>
<a href="#" onClick="showHideTable('2')">Products</a><br>
<div class="menu" id="2">
<a href="1.html">prod 1</a><br>
<a href="2.html">prod 2</a><br>
<a href="3.html">prod 3</a><br>
</div>
</td>
<td>
<a href="#" onClick="showHideTable('3')">Products</a><br>
<div class="menu" id="3">
<a href="1.html">prod 1</a><br>
<a href="2.html">prod 2</a><br>
<a href="3.html">prod 3</a><br>
</div>
</td>
</tr>
</table>
</body>
</html>