Link to home
Start Free TrialLog in
Avatar of smacca
smaccaFlag for Australia

asked on

Menu DHTML script problems - timer, setTimeout, openMenu(id)

I am having problems with DHTML for my menu system.
The problem is:

  1. Go to http://www.solarinception.com.au
  2. Hover your mouse over menu items on left (Home Owners and Products)
  3. Quickly hover over 'Products' THEN continue down to 'Home Owners'.
  4. Note that one of the menu systems stays open.

You can view the script that makes this happen at:

  http://www.solarinception.com.au/includes/javascript/menu.js
  * View Page Source - to see what methods are called on the menu.

I am think this may has something to do with using a commonly declared timer. The timer is reset in the openMenu(id) call and that stops the other menu closing. The problem is I cannot find a solution.

ALL OTHER ASPECTS OF THE MENU WORK FINE!
ASKER CERTIFIED SOLUTION
Avatar of basicinstinct
basicinstinct
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smacca

ASKER

Thanks BasicInstinct!

You fixed the problem (I will award points for regardless), however, a new problem has been introduced:

  http://www.solarinception.com.au

The menu does not STAY OPEN when you mouseover a submenu item.
Could you help here at all???

Cheers.
Steve