We help IT Professionals succeed at work.

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

209 Views
Last Modified: 2013-11-19
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!
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
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

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.