PDA

View Full Version : AnyLink JS Drop Down Menu - remove repositioning feature?



scruff
11-02-2009, 10:38 PM
AnyLink JS Drop Down Menu

http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.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/

ddadmin
11-03-2009, 06:18 AM
Sure, inside anylinkmenu.js, try removing the below two lines:


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
}