PDA

View Full Version : Link menu need help!



chishikinohito
10-10-2009, 07:25 PM
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:

How to load not just a regular link from this menu but something that requiers id class activation on click?

like this: <a id="photogallery1">1</a>

like this is not working:
["Play the photo gallery","<a id="photogallery1">1</a>
"],

what should I do? is this possible to use <a id="photogallery1">1</a>
in the second part? somehow?

or what should I do in this case?

Thank you much for any help!

chishikinohito
10-10-2009, 08:03 PM
Or even better, to make this menu complete as I think:

How to add additional <a> tag, in to it, such as rel="", id="" and name=""

for example:

["MSNBC", "http://www.msnbc.com/", "relParamIfThereIs", "idParamIfThereIs","nameParamIfThereIs"],


how to change the following line from .js:

frag+='<li><a href="' + menuobj.items[i][1] + '" target="' + menuobj.linktarget + '">' + menuobj.items[i][0] + '</a></li>\n'


To make it work?


If we tweak this menu like this, then i will become more functional because you would be able easily start lightBox and do a lot more other stuff.










["Play the photo gallery","<a id="photogallery1">1</a>
"],

what should I do? is this possible to use <a id="photogallery1">1</a>
in the second part? somehow?

or what should I do in this case?

Thank you much for any help!