Results 1 to 3 of 3

Thread: AnyLink JS Drop Down Menu (add a 2nd menu to menucontent)

  1. #1
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink JS Drop Down Menu (add a 2nd menu to menucontent)

    AnyLink JS Drop Down Menu v2.2
    I want to add multi column drop down menus for each link in my navigation.
    Computer, Networking, Printers

    The first menu is working fine, because I used the instructions.

    How do I add another menu. Im not a coder so this is confusing. The instructions did not say what code to copy or where to put the code to ad another menue. They only said that anylinkmenu3 is "an arbitrary but unique variable name that identifies this menu content"

    menucontents.js

    Code:
    var anylinkmenu3={divclass:'anylinkmenucols', inlinestyle:'', linktarget:'secwin'} //Third menu variable. Same precaution.
    anylinkmenu3.cols={divclass:'column', inlinestyle:''} //menu.cols if defined creates columns of menu links segmented by keyword "efc"
    anylinkmenu3.items=[
    ["Dynamic Drive", "http://www.dynamicdrive.com/"],
    ["CSS Drive", "http://www.cssdrive.com/"],
    ["Coding Forums", "http://www.codingforums.com/"],
    ["JavaScript Reference", "http://www.javascriptkit.com/jsref/", "efc"],
    ["CNN", "http://www.cnn.com/"],
    ["MSNBC", "http://www.msnbc.com/"],
    ["Google", "http://www.google.com/"],
    ["BBC News", "http://news.bbc.co.uk", "efc"],
    ["News.com", "http://www.news.com/"]
    ["Digg", "http://www.digg.com/"],
    ["Tech Crunch", "http://techcrunch.com"] //no comma following last entry!
    ]
    Last edited by jscheuer1; 01-05-2010 at 06:41 PM. Reason: format code

  2. #2
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This can be done by copying the entire menu code "var anylinkmenu3={divclass:'anylinkmenucols', inlinestyle:'', linktarget:'secwin'} //Third menu variable. Same precaution.
    Code:
    anylinkmenu3.cols={divclass:'column', inlinestyle:''} //menu.cols if defined creates columns of menu links segmented by keyword "efc"
    anylinkmenu3.items=[
    ["Dynamic Drive", "http://www.dynamicdrive.com/"],
    ["CSS Drive", "http://www.cssdrive.com/"],
    ["Coding Forums", "http://www.codingforums.com/"],
    ["JavaScript Reference", "http://www.javascriptkit.com/jsref/", "efc"],
    ["CNN", "http://www.cnn.com/"],
    ["MSNBC", "http://www.msnbc.com/"],
    ["Google", "http://www.google.com/"],
    ["BBC News", "http://news.bbc.co.uk", "efc"],
    ["News.com", "http://www.news.com/"]
    ["Digg", "http://www.digg.com/"],
    ["Tech Crunch", "http://techcrunch.com"] //no comma following last entry!
    ]
    "
    and placing it below the fist instance. Then renaming the anylinkmenu3 with a different name. Then go to your navigation and use the link class="menuanchorclass" rel="NEWNAME">
    Last edited by jscheuer1; 01-05-2010 at 06:42 PM. Reason: format code

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This means you figured it out?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •