PDA

View Full Version : AnyLink JS Drop Down Menu v2.2 - Title addition to links



indraveni
10-07-2009, 10:05 AM
1) AnyLink JS Drop Down Menu v2.2

2) http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) in my menu content's for some of the links I want to add title="some description", as I have abbrevations of my project in the menu" I want to know how I can add title attribute to some of the menu entries. nothing but, onmouseover, it should show the description given in title attribute of <a> tag.

Awaiting for the reply.

thanks
indraveni

jscheuer1
10-08-2009, 11:25 AM
Use this slightly modified version of the main script:

2901

With it you may add a title to any or all array entries in your menucontents.js file, ex:


var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} //First menu variable. Make sure "anylinkmenu1" is a unique name!
anylinkmenu1.items=[
["Dynamic Drive", "http://www.dynamicdrive.com/", "Dynamic Scripts and Styles!"],
["CSS Drive", "http://www.cssdrive.com/"],
["JavaScript Kit", "http://www.javascriptkit.com/"],
["Coding Forums", "http://www.codingforums.com/"],
["JavaScript Reference", "http://www.javascriptkit.com/jsref/"] //no comma following last entry!
]

You may still use "efc" there to indicate End For Column, or if using a title and ending the column, just add the "efc" token after the title, ex:


["JavaScript Reference", "http://www.javascriptkit.com/jsref/", "My Title", "efc"],