Results 1 to 3 of 3

Thread: Make ddlevelsmenu always go down

  1. #1
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Make ddlevelsmenu always go down

    1) Script Title: All Levels Navigational Menu (v2.2)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/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?

    Thanks!

    -Drew

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, inside the .js file, try commenting out the below code:

    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)
    				}
    			}
    */
    DD Admin

  3. #3
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Freaking awesome, thank you for this great script and your help!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •