Hi everyone, I need some help.
Here’s the thing;
I’m making a kind of drop-down menu and it’s not working quite as I would like. If you trust me you could check out this adress to see the thing I doing: [URL=”http://horseballs.mine.nu/test/test.hmtl”]http://horseballs.mine.nu/test/test.hmtl
These are the main code:
[CODE]<script type=”text/javascript”>
//show function
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility=”visible”
}
// hide function
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility=”hidden”
}
// delay function
function delayhidemenu()
{
setTimeout(“hidemenu()”, 500);
}
<td class=”start” onmouseover=”showmenu(‘crew’)” onmouseout=”delayhidemenu(‘crew’)” bgcolor=”#000000″>
</script>
Now, if I just write: onmouseout=”hidemenu(‘crew’)” ; the menu hides, but it hides instantly and thats not what I would like.
I would like to know what I messed up in the ‘delayhidemenu’ function.
Any help is very appriciated. If you need more information about this, just pm me or post here.
Thanks in before hand,
Eric.