View Full Version : error in All Levels Navigational Menu (v2.2)

09-02-2009, 07:19 PM
1) Script Title: ddlevelsmenu.js

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm

3) Describe problem:

When rendering the html-page in which I added the html-code for the "all levels navigational menu" IE reports an error (bottom left corner). The details are:
Invalid argument
ddlevelsmenu.js line 347
Code: 0

The topmenu bar is properly displayed on my html-page. The submenu's are not displayed when hovered over the menu items.

Firefox does not report the error, but FF is also not displaying the submenu items.

I have no knowledge of javascript and therefore I cannot resolve this problem.

09-02-2009, 10:45 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.

09-08-2009, 06:10 AM
THe website on which the problem occurs


12-06-2009, 12:33 PM
;) Your problem is the use of the rel attribute on the Sponsors list item.

There is no <ul id="submenu4">, and because Javascript cannot find it, it throws an error.

rel should only be used on those items that are linking to a submenu. By removing rel="submenu4" from the below hyperlink, you should find the problem will go away.

<li><a href="Sponsors.html" rel="submenu4">Sponsors</a></li>