maximumovertime
12-20-2008, 05:03 AM
1) Script Title: All Levels Navigational Menu (v1.5)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm
3) Describe problem: For some reason, the submenus on my site won't expand.
If you look at my site, there are two buttons to click on; The first one is titled:Products on this page.
The second button is titled: Products on this site.
It is the second button or menu that I have the problem with.
I cannot find the answer to the problem because as far as I know the lists and sublists are set up correctly.
The following changes have already been made when seting up this script on my page:
1. ddlevelsmenu.js file was changed to work on click and not mouse hover. (File is attached to this post) - Is it possible to have only submenus expand on hover?
2. Right arrow pointers were removed from the top level buttons by commenting out this line of code:
//this.addpointer(menuitem, arrowpointer, this[arrowpointer], (dir=="sidebar")? "before" : "after")
3. Disabled hyperlink for the top Level buttons by adding the code that is in red:
if (istoplevel){
this.addEvent(header, function(e){
ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)])
e.preventDefault()
return false
}, "click")
}
If anyone can help with either the html or make a suggestion as to how to change the ddlevelsmenu.js file that would be great because I can't seem to find the source of the problem after looking at my html code, css style sheets and don't know enough to find and edit what may be needed in the .js file.
URL for the page is:
There is no link here now as the page is no longer needed.
Thanks.:confused::(
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm
3) Describe problem: For some reason, the submenus on my site won't expand.
If you look at my site, there are two buttons to click on; The first one is titled:Products on this page.
The second button is titled: Products on this site.
It is the second button or menu that I have the problem with.
I cannot find the answer to the problem because as far as I know the lists and sublists are set up correctly.
The following changes have already been made when seting up this script on my page:
1. ddlevelsmenu.js file was changed to work on click and not mouse hover. (File is attached to this post) - Is it possible to have only submenus expand on hover?
2. Right arrow pointers were removed from the top level buttons by commenting out this line of code:
//this.addpointer(menuitem, arrowpointer, this[arrowpointer], (dir=="sidebar")? "before" : "after")
3. Disabled hyperlink for the top Level buttons by adding the code that is in red:
if (istoplevel){
this.addEvent(header, function(e){
ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)])
e.preventDefault()
return false
}, "click")
}
If anyone can help with either the html or make a suggestion as to how to change the ddlevelsmenu.js file that would be great because I can't seem to find the source of the problem after looking at my html code, css style sheets and don't know enough to find and edit what may be needed in the .js file.
URL for the page is:
There is no link here now as the page is no longer needed.
Thanks.:confused::(