Log in

View Full Version : AnyLink JS Drop Down Menu (add a 2nd menu to menucontent)



stlspotlight
01-05-2010, 05:48 PM
AnyLink JS Drop Down Menu v2.2 (http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm)
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


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!
]

stlspotlight
01-05-2010, 05:55 PM
This can be done by copying the entire menu 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!
]
"
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">

jscheuer1
01-05-2010, 06:43 PM
This means you figured it out?