Results 1 to 3 of 3

Thread: Force menu to drop down

  1. #1
    Join Date
    Feb 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Force menu to drop down

    1) Script Title: AnyLink Drop Down Menu v2.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem:

    This drop down script is awesome. I am a newbie at web design and was able to get this script to work. It was well written and documented.

    The problem I am having is when the menu does not have enough room it goes up instead of down. I would not care but a flash document is directly above and so it can't go up either. If I scroll the page down then it drops down and looks awesome.

    My question is there anyway to force it to go down and cause the page to autoscroll.

    To get a feel for what I am talking about go to http://saminskeep.com

    the menu item sponsors is the one that has the drop down.

    Thanks in advance for any advise.

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

    Default

    To stop the menu from dropping up, inside the .js file, try commenting out the below lines (new code in red):

    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

  3. #3
    Join Date
    Feb 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks that worked like a charm.

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
  •