Results 1 to 3 of 3

Thread: Anylink Dropdown Menu - Positioning help?

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

    Default Anylink Dropdown Menu - Positioning help?

    AnyLink Dropdown Menu
    http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    Hi! I'm having difficulty positioning the Anylink Dropdown menu near the link it's attached to. I think it might be because of my absolute positioning, but I'm not sure. If anyone can help I would be extremely grateful!!

    You can see what I'm talking about here on the SERVICES and THE TEAM links.

    http://www.thunderpeel2001.com/JHM/JHM/index.html

    Damned annoying since I'd just gotten it to look how I wanted it to!

    Thanks for any help (I'm thinking the code/website might need some fairly major changes for it to work?).

    - Johnny

    PS - Sorry, I looked over the past few pages for an Anylink Dropdown Menu thread, but couldn't find one?

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    if you take out those absolute positioning then it will work fine.. the script comes with the positioning itself
    Code:
    dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
    dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
    references the function directly above it "clearbrowseredge" function


    so take out the positioning parts of that script and leave the cosmetics

  3. #3
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Genuis! Thanks for your help! I changed the code:

    Code:
    if (ie4||ns6){
    showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
    dropmenuobj.x=getposOffset(obj, "left")
    dropmenuobj.y=getposOffset(obj, "top")
    dropmenuobj.style.left=dropmenuobj.x+200+"px"
    dropmenuobj.style.top=185+"px"
    }
    http://www.thunderpeel2001.com/JHM/JHM/index2.html

    It's not 100% perfect, but it's 100 times better! It'd be great to be able to position each menu individually, but this seems to just about work!

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
  •