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

Posted on 2007-10-15
Last Modified: 2013-11-19
I am having problems with DHTML for my menu system.
The problem is:

  1. Go to
  2. Hover your mouse over menu items on left (Home Owners and Products)
  3. Hover over 'Products'.
  4. Note that the menu systems does not stay open.

You can view the script that makes this happen at:
  * View Page Source - to see what methods are called on the menu.

I am really struggling to find a solution.

Question by:smacca
    LVL 3

    Accepted Solution

    After investigate your source code, I found the following HTML code for sub-menu Hoe Owners:
    <li id="Home_Owners_Menu" onmouseover="cancelCloseMenuTimer();" onmouseout="closeMenuTimer('Home_Owners_Menu');" style="display:none">
    And in the menu.js: function cancelCloseMenuTimer(id) which receives Id as a argument, but the above onmouseover event don't pass the id.
    Just add the Id as following and it will be done:
    <li id="Home_Owners_Menu" onmouseover="cancelCloseMenuTimer('Home_Owners_Menu');" onmouseout="closeMenuTimer('Home_Owners_Menu');" style="display:none">
    LVL 3

    Expert Comment

    Same for the Product menu :-)

    Author Comment

    Thanks KhoiNqq!
    I have been scanning over this problem and code for some time so it was great to find a solution.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now