Results 1 to 3 of 3

Thread: Move menu slightly in AnyLink JS Drop Down Menu v2.0

  1. #1
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Move menu slightly in AnyLink JS Drop Down Menu v2.0

    1) Script Title: AnyLink JS Drop Down Menu v2.0

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

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

    Default

    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:

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

  3. #3
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks much. That worked out perfectly (after we changed the value from 5 to 10).

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
  •