I'm having a problem with some code my friend gave me.. When you mouse over the navigation bar and the menu drops.. I want the menu to instead of highlighting just the word.. I want it to highlight the entire cell.. ie.. say I mouse over the first nav bar and the menu drops down when i move the mouse over to the first cell "html" i dont want just html hightlighted but that one cell highlighted.. then the same for the next..
Also, you see how each sub-menu cell is divided, is there a way you can fill in the empty translucent dividers..
heres my code::
<html>
<head>
<style>
a:hover{
text-decoration:none;
background:#FFDEAD;
color:white;}
A {
color:royalblue;
text-decoration:none;
font:normal 10pt Verdana, Arial;
background:;
}
td.menu{backgroundrange}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script>
</head>
<body bgcolor="#ffffff">
<table cellspacing="0" cellpadding="0" border="0" width="750">
<tr>
<td onmouseover="showmenu('menu1')" onmouseout="hidemenu('menu1')" width="115" >
<img border="0" src="business_logo.bmp" width="125" height="19"><br />
<table class="menu" id="menu1" width="125" height="35">
<tr><td class="menu" height="18" width="78"><a href="../html"><font color="#000000" size="1">HTML</a></font></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xhtml"><font color="#000000" size="1">XHTML</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../css"><font color="#000000" size="1">CSS</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xml"><font color="#000000" size="1">XML</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="1" width="78"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
</table>
</td>
<td onmouseover="showmenu('menu2')" onmouseout="hidemenu('menu2')" width="611" >
<img border="0" src="teams_logo.bmp" width="125" height="19"><br />
<table class="menu" id="menu2" width="124" height="35">
<tr><td class="menu" height="18" width="116"><a href="../html"><font color="#000000" size="1">HTML</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xhtml"><font color="#000000" size="1">XHTML</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../css"><font color="#000000" size="1">CSS</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xml"><font color="#000000" size="1">XML</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="1" width="116"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
</table>
</td>
</table>
</body>
thanks,
Also, you see how each sub-menu cell is divided, is there a way you can fill in the empty translucent dividers..
heres my code::
<html>
<head>
<style>
a:hover{
text-decoration:none;
background:#FFDEAD;
color:white;}
A {
color:royalblue;
text-decoration:none;
font:normal 10pt Verdana, Arial;
background:;
}
td.menu{backgroundrange}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script>
</head>
<body bgcolor="#ffffff">
<table cellspacing="0" cellpadding="0" border="0" width="750">
<tr>
<td onmouseover="showmenu('menu1')" onmouseout="hidemenu('menu1')" width="115" >
<img border="0" src="business_logo.bmp" width="125" height="19"><br />
<table class="menu" id="menu1" width="125" height="35">
<tr><td class="menu" height="18" width="78"><a href="../html"><font color="#000000" size="1">HTML</a></font></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xhtml"><font color="#000000" size="1">XHTML</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../css"><font color="#000000" size="1">CSS</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xml"><font color="#000000" size="1">XML</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="18" width="78"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="1" width="78"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
</table>
</td>
<td onmouseover="showmenu('menu2')" onmouseout="hidemenu('menu2')" width="611" >
<img border="0" src="teams_logo.bmp" width="125" height="19"><br />
<table class="menu" id="menu2" width="124" height="35">
<tr><td class="menu" height="18" width="116"><a href="../html"><font color="#000000" size="1">HTML</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xhtml"><font color="#000000" size="1">XHTML</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../css"><font color="#000000" size="1">CSS</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xml"><font color="#000000" size="1">XML</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="18" width="116"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
<tr><td class="menu" height="1" width="116"><a href="../xsl"><font color="#000000" size="1">XSL</a></td></tr>
</table>
</td>
</table>
</body>
thanks,