igendreau
03-24-2010, 02:59 AM
1) Script Title: :: AnyLink JS Drop Down Menu v2.2
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem: I'm a newbie, so bear with me. I did a basic drop-down menu on an image so when I roll over it, the image appears, and it works fine. But I tried following the instructions to divide into multiple columns and it still shows up in a single column. Here is the code in my menucontents.js file:
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} //First menu variable. Make sure "anylinkmenu1" is a unique name!
anylinkmenu1.cols={divclass:'column', inlinestyle:''} //menu.cols if defined creates columns of menu links segmented by keyword "efc"
anylinkmenu1.items=[
["Dynamic Drive", "http://www.dynamicdrive.com/"],
["CSS Drive", "http://www.cssdrive.com/"],
["JavaScript Kit", "http://www.javascriptkit.com/", "efc"],
["Coding Forums", "http://www.codingforums.com/"],
["JavaScript Reference", "http://www.javascriptkit.com/jsref/"] //no comma following last entry!
]
Here is my page, it is the "Teams" button in the menu: http://www.buxmonttorch.com/newmenusample.html
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem: I'm a newbie, so bear with me. I did a basic drop-down menu on an image so when I roll over it, the image appears, and it works fine. But I tried following the instructions to divide into multiple columns and it still shows up in a single column. Here is the code in my menucontents.js file:
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} //First menu variable. Make sure "anylinkmenu1" is a unique name!
anylinkmenu1.cols={divclass:'column', inlinestyle:''} //menu.cols if defined creates columns of menu links segmented by keyword "efc"
anylinkmenu1.items=[
["Dynamic Drive", "http://www.dynamicdrive.com/"],
["CSS Drive", "http://www.cssdrive.com/"],
["JavaScript Kit", "http://www.javascriptkit.com/", "efc"],
["Coding Forums", "http://www.codingforums.com/"],
["JavaScript Reference", "http://www.javascriptkit.com/jsref/"] //no comma following last entry!
]
Here is my page, it is the "Teams" button in the menu: http://www.buxmonttorch.com/newmenusample.html