View Full Version : Make ddlevelsmenu always go down

11-06-2009, 09:47 PM
1) Script Title: All Levels Navigational Menu (v2.2)

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

3) Describe problem: Not really a problem but a question. So the menu takes into account where the menu starts on the page, how much you have scrolled, the overall page size/monitor size/etc and then tries to show as much of the menu as possible (sometimes showing it going down, sometimes up, sometimes sort of in the middle). Is there a way to have the menu always go down, even if some of it were not visible by doing so?



11-07-2009, 04:26 AM
Sure, inside the .js file, try commenting out the below code:

if (submenubottomedge-scrollY>ddlevelsmenu.docheight){ //no room downwards?
if (this._dimensions.submenuh<this._offsets.top+(dir=="sidebar"? this._dimensions.h : 0)-scrollY){ //move up?
menutop+= - this._dimensions.submenuh + (this._istoplevel && dir=="topbar"? -this._dimensions.h : this._dimensions.h)
else{ //top of window edge
menutop+= -(this._offsets.top-scrollY) + (this._istoplevel && dir=="topbar"? -this._dimensions.h : 0)

11-07-2009, 04:52 AM
Freaking awesome, thank you for this great script and your help!