View Full Version : Move menu slightly in AnyLink JS Drop Down Menu v2.0

11-29-2011, 07:20 PM
1) Script Title: AnyLink JS Drop Down Menu v2.0

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem:
We are using "lr" to have the menu appear to the right of a set of buttons, but the alignment is just a tad low. Is it possible to 'raise' the flyout menu by 5-10 pixels (for each button)?

11-30-2011, 03:00 AM
Well, the following code inside the .js file controls the top position of the drop down menu in "lr" position. Try adding the code in red to it to shift things up slightly:

var posy=menu.anchorobj._offsets.top+this.dimensions.anchorh - (menu.orientation=="lr"? this.dimensions.anchorh+5 : 0)//base y pos

11-30-2011, 07:21 PM
Thanks much. That worked out perfectly (after we changed the value from 5 to 10).