Results 1 to 2 of 2

Thread: AnyLink CSS Menu v2.3 drop down menus

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

    Default AnyLink CSS Menu v2.3 drop down menus

    1) Script Title: AnyLink CSS Menu v2.3

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

    3) Describe problem: I am using this script on 6 links on my site. I want the first three to have the drop down box be below the buttons and then out to the right. This happens by leaving the "rev" attribute as undefined.

    ----------------------------------------------
    To get the menu to drop down to the right of the anchor link instead of the default below it, add an extra "rev" attribute inside the anchor with a value of "lr':

    <p><a href="http://www.dynamicdrive.com" class="anchorclass" rel="submenu1" rev="lr">Anchor Link</a></p>

    Valid values for the "rev" attribute: undefined, rev="up", or rel="lr".
    ----------------------------------------------

    I would like for my other three buttons to have the drop down menus drop below the anchor link but then go to the left.

    Is their a way to adjust the js code to allow for another value for the "rev" attribute beside just "ud" or "lr"?

    Thanks.

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

    Default

    Sure, try the below modified .js file, which adds support for an extra attribute:

    Code:
    hpos="left"
    When you insert this inside the anchor link, the resulting drop down menu will drop down to the left of the link (instead of to the right), for example:

    Code:
    <a href="http://www.dynamicdrive.com" class="anchorclass myownclass" rel="submenu3" data-hpos="left">Menu with multiple columns</a>
    DD Admin

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
  •