Help with debugging menu program

Discussion in 'JavaScript' started by Navarone, Dec 4, 2007.

  1. #1
    I have to fix a menu that was developed by another programmer and quiet truthfully I think the everything has been over-engineered. (IMHO)

    http://dev-mactrailer-v2.virtualhorizons.com/index.aspx

    What seems to be happening is as you rollover the menu options at the top and mouse into the menu options that drop down and just below the red bar at the top they sometimes appear or dissappear and are not very stable.

    Thats the first problem, what I can't determine is if this is a java script issue or a css/div tag issue.

    Any help greatly appreciated.:)
     
    Navarone, Dec 4, 2007 IP
  2. hrcerqueira

    hrcerqueira Peon

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I hadn't look closely to your code, but at a first glance it looks you do something like this:

    
    If mouseover a header div
       show the correspondent menu
    
    If mouseout a header div
       hide the correspondent menu
    
    If mouseout a menu
       hide it
    
    Code (markup):
    and perhaps you should try something like:

    
    If mouseover a header div
       show the correspondent menu
    
    If mouseout a header div
       wait 100 milliseconds
          then if mouse still out and not over the menu
             hide the correspondent menu
    
    If mouseout a menu
       hide it
    
    Code (markup):
    I hope that helps...
     
    hrcerqueira, Dec 4, 2007 IP