PDA

View Full Version : Force menu to drop down



skeep
02-06-2010, 02:16 PM
1) Script Title: AnyLink Drop Down Menu v2.0

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

ddadmin
02-06-2010, 08:43 PM
To stop the menu from dropping up, inside the .js file, try commenting out the below lines (new code in red):


/*
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
}
*/

skeep
02-07-2010, 04:00 AM
Thanks that worked like a charm.