[/B]Hi everyone,
I'm still trying to figure our why my drop down menu won't respond to the event handlers I have set up; I want the drop down menu to appear as if being pulled down; this works great. But once viewer mouses off the drop menu I want it to disappear and right now it won't. Here is the link to the page: http://www.captsigerson.com/SWD2/drop_menu3.html
Try either menu, it scrolls out fine; but you have to reload the page to get it to disappear. What baffles me is why my function mclose is not working.
Any suggestions would be appreciated:
Here is the code:
<script type="text/javascript" >
var active_menu=null;
var targetmenuid=null;
var clipht = 10;
var timerID;
function testchange(menuid)
{
if(active_menu == null)
{
change_menu(menuid);
}
break;
}
timerID=setInterval("rolldown()", 1);
//window.alert("next statement after setInterval");
}
function mclose(menuid)
{
//window.alert("the element id is: "+ menuid);
var element=document.getElementById(menuid);
element.onmouseout=function ()
{
element.style.display = "none";
}
}
//loop thru to show menu being pulled down
function rolldown()
{
clipht=clipht + 3;
if(clipht <200)
{
Hey, thanks for the reply; I've got it working at 95% of what I hoped to accomplish....still a little short of ideal.
I know many members will suggest Firebug as an aide for debugging but I have always found it intimidating to deal with. I know I should devote more time to understanding it.
I would have preferred not to have to require the viewer to 'click' in order for the drop menus to disappear; but I've been foolin' around with this thing for the last three mornings and I guess I just want to move on.
Any thing you can suggest would be very appreciated!!
Bookmarks