Results 1 to 2 of 2

Thread: AnyLink JS Drop Down Menu - remove repositioning feature?

  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink JS Drop Down Menu - remove repositioning feature?

    AnyLink JS Drop Down Menu

    http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    I've got the menus working ok, such an easy script. The client has supplied a rather long list of inclusion in the dropdowns, and as the menu is partway down the page it is invoking the thing where it moves the menu further up the page to avoid being obscured. while i can see this is a useful thing i think my client won't like it so i was wondering how i'd go about turning it off or removing it from the script? thanks!

    my page is here: http://www.rongale.co.uk/arh/

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

    Default

    Sure, inside anylinkmenu.js, try removing the below 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
  •