Results 1 to 3 of 3

Thread: Anylink JS Drop Down Menu: Position & Link Styling

  1. #1
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default Anylink JS Drop Down Menu: Position & Link Styling

    1) Script Title: Anylink JS Drop Down Menu

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

    3) Describe problem: I need help getting the pop out menus to move over and down a few pixels and help styling the the pop-out menu hyperlinks (link, active, visited and hover)

    Here is my test page: http://www.floridacompact.org/index3.html

    I found the following code in the .js file:
    Code:
    	menu.dropmenu.setcss({left:posx+'px', top:posy+'px', visibility:'visible'})
    It seems tweaking that would help with the pop-out positioning, but everything I tried resulted in the menu no longer working.

    UPDATE:

    I added the following code to the css and the link colors appear to working the way my client would like:
    Code:
    .anylinkmenu a{ /*link background color*/
    background: #fff;
    color: #a30134;
    }
    
    .anylinkmenu a:hover{ /*hover background color*/
    background: #fff;
    color: #6bd7d0;
    }
    
    But I still can't figure out the positioning...
    Thanks,
    Deborah
    Last edited by dmwhipp; 09-09-2010 at 10:14 PM.
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

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

    Default

    I need help getting the pop out menus to move over and down a few pixels...
    You should be able to do this by editing the line you quoted above inside the script, plus another line. Lets say you want to offset the menu 15px to the right and down; you'd make the following changes in red inside the .js file:

    Code:
    menu.dropmenu.setcss({left:posx+15+'px', top:posy+15+'px', visibility:'visible'})
    and

    Code:
    menu.shadow.setcss({left:posx+anylinkmenu.effects.shadow.depth[0]+15+'px', top:posy+anylinkmenu.effects.shadow.depth[1]+15+'px', visibility:'visible'})
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    dmwhipp (09-11-2010)

  4. #3
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    Thanks you... I was omitting the second + sign, but it's working perfectly.
    Thanks again,
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

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
  •