- Oct 9, 1999
- 37,562
- 9
- 81
On the links under the Navigation drop down list, you can have your mouse over the box so that it's changed color, but clicking doesn't click the link. If you're not clicking on the text exactly, it doesn't register. It only happens on the outside pixel of the button, so it doesn't happen often, but like I said I'm picky.
You just need a function that will fire a click of the link element and call it from the onclick of the <td>. Not that I doubt your coding prowess, but I'll snip some code from my own site.
function clickmenu(menuitem){
document.getElementById(menuitem).click();
}
<td id="men1" onclick="clickmenu('men1link')" onmouseover="mouserollover('men1');" onmouseout="mouserollout('men1');"><a id="men1link" href="http://mysite">Home</a></td>
You just need a function that will fire a click of the link element and call it from the onclick of the <td>. Not that I doubt your coding prowess, but I'll snip some code from my own site.
function clickmenu(menuitem){
document.getElementById(menuitem).click();
}
<td id="men1" onclick="clickmenu('men1link')" onmouseover="mouserollover('men1');" onmouseout="mouserollout('men1');"><a id="men1link" href="http://mysite">Home</a></td>
