Results 1 to 2 of 2

Thread: AnyLink Drop Down Menu -- Help with Placement

  1. #1
    Join Date
    Aug 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink Drop Down Menu -- Help with Placement

    1) Script Title: AnyLink Drop Down Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem: I simply want to be able to specify how many pixels the drop down menu offsets from the top and the left of the anchor that it's being assigned to. I've trying playing around with it myself, but while I seem to be able to get it to function in IE, it simply doesn't work at all in FireFox.

    I'm going insane trying to get this to work. Help, please!

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

    Default

    You can manually add to the default offsets of the drop down relative to the anchor link, though if the gap becomes too wide, the menu most likely will disappear before the user's mouse gets to the drop down menu in time (from the anchor link). With that in mind, find the lines:

    Code:
    dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+5+"px"
    dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+5+"px"
    The code in red is new, and adds 5 pixels both to the left and top offsets.

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
  •