• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

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. Hover over 'Products'.
  4. Note that the menu systems does not stay 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 really struggling to find a solution.

ALL OTHER ASPECTS OF THE MENU WORK FINE!
0
smacca
Asked:
smacca
  • 2
1 Solution
 
KhoiNqqCommented:
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">
...
</li>
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">
0
 
KhoiNqqCommented:
Same for the Product menu :-)
0
 
smaccaAuthor Commented:
Thanks KhoiNqq!
I have been scanning over this problem and code for some time so it was great to find a solution.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now