Results 1 to 3 of 3

Thread: anylink 2.2 dropdown menu

  1. #1
    Join Date
    Sep 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question anylink 2.2 dropdown menu

    1) Script Title:
    anylink 2.2 dropdown menu
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...pmenuindex.htm
    3) Describe problem:
    I wish to display the menu upwards instead of downwards,

    I read the older posts about this matter, but it seems anylink has completely changed its format of coding, please help ^^

    Thx

  2. #2
    Join Date
    Sep 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    no one figured this out yet?

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

    Default

    The script actually will already auto drop up a sub menu if it's too close to the browser's bottom edge. But if you're asking how to have them always drop up, inside anylinkmenu.js, find the below lines, and comment out the outer two lines:

    Code:
    	//if (posy+this.dimensions.dropmenuh>this.dimensions.docscrolly+this.dimensions.docheight){  //drop up instead?
    		posy=Math.max(posy-this.dimensions.dropmenuh - (menu.orientation=="lr"? -this.dimensions.anchorh : this.dimensions.anchorh), this.dimensions.docscrolly) //position above anchor or window's top edge
    	//}
    DD Admin

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
  •