PDA

View Full Version : anylink 2.2 dropdown menu



genxstylez
09-17-2009, 07:30 AM
1) Script Title:
anylink 2.2 dropdown menu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.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

genxstylez
09-22-2009, 09:32 AM
no one figured this out yet?

ddadmin
09-22-2009, 08:29 PM
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:


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