Results 1 to 3 of 3

Thread: Question About Offsetting

  1. #1
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Question About Offsetting

    1) Script Title: anylinkmenu

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

    3) Describe problem:

    One thing I'd like to change about this script is that, when you hover over the link, the menu pops up IMMMEDIATELY to the right (using the rev="lr") -- I'd like to change that, offset it a bit. It almost covers the word. How would I do that?

    I've tried several commands in the anylinkmenu.css but none seem to have any effect.

    Any suggestions?

    Thanks!

    Mo

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

    Default

    Try finding the below line inside anylinkmenu.js, and add to it the code in red:

    Code:
    var posx=menu.anchorobj._offsets.left + (menu.orientation=="lr"? this.dimensions.anchorw+5 : 0) //base x pos
    Don't increase the offset by too much, or the sub menu may be closed before the mouse is quick enough to move over on top of it.
    DD Admin

  3. #3
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks!

    That's much better. I increased it by +20 and it's much better. The trouble was, when attached to a list-down menu (i.e., the links go down the page), if one is shorter than the others, it covers those links. I know I can solve this with images, but they don't match up with the rest of my list.

    But this helps. Thanks again!

    Mo
    Last edited by trackermo; 08-27-2009 at 04:48 PM.

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
  •