1) Script Title: ddlevelsmenu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
3) Describe problem: I'm working with ddlevelsmenu for the first time, and everyhting is working well, no problems. However, I have noticed in both IE and Firefox that any page the has the drop down menu on it will have about 500px of margin below the page, resulting in the browser scroll bar activating, where you just scroll down over nothing. I was able to jump into the CSS - specifically this section:
.ddsubmenustyle, .ddsubmenustyle div{ /*topmost and sub DIVs, respectively*/
position: absolute;
list-style-type: none;
background: white;
border: 1px solid #313131;
border-bottom-width: 0;
visibility: hidden;
z-index: 100;
}
"visibility: hidden" seems to be the issue.
Although the visibility is set to "hidden" the submenu s that reside outside all other DIVs just above the </body> tag (as instructed) ... do take up "realestate" on the page, and I guess the browser is figuring that it needs the scroll bar.
<!--HTML for the Drop Down Menus associated with Top Menu Bar-->
<!--They should be inserted OUTSIDE any element other than the BODY tag itself-->
<!--A good location would be the end of the page (right above "</BODY>")-->
I jumped into the CSS and changed "visibility: hidden;" to "display: none;" - and this took care of the scroll bar issue. Of course the problem now is that the submenus don;t display. I couldn;t find anything in the .js cade that migth have indicated where I could activate the submenus by changing the display property.
Any ideas?
Sorry I don't have a page to show you - the site is still in production. If need be I can throw a test page up to illustrate.
Thanks much!



Reply With Quote

Bookmarks