|
I tried to use javascript function within the "Title item" of my javascript menu code.
Return to Recent Questions
Q:
I tried to use javascript fuctions for subitem and it worked fine but
not working with the main items (Group or header item), is there a way to
process onclick for the title item in javascript menu code? Thanks again.
You're able to use Javascript for each item, for example:
var tmenuitems = [
["item text", "javascript:your_code_here"]
];
A:
Unfortunately, title items doesn't allow you to use Javascript in the same
way.
But you can do the following:
var tmenuitems = [
["<div onclick='your_code_here'>title text</div>"]
];
Return to Recent Questions
Related:
- May 05, 2009 - I'm wondering if you can use the ASP code within Item Link of the drop down dhtml menu?
- Aug 14, 2009 - I'm trying to simply use API functions to add some properties to my menu drop down javascript.
- Sep 03, 2009 - Is it possible to use the AJAX-Like technology and dynamic API functions in css tree menu?
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the dynamic menu javascript?
- Oct 08, 2009 - I use v3.0. I cannot manage to search within the html menu generator...
- Oct 19, 2009 - Can I move all code for the expanding menu javascript within the html and not use it as external .js file?
- Nov 01, 2009 - Is it possible that your web navigation menu call some javascript on mouseover?
- Nov 08, 2009 - How to call javascript function when the user click on a menu button Items...
- Nov 20, 2009 - Cascading menu javascript won't mouseover and won't open the submenus and I have a javascript error...
- Dec 04, 2009 - I use v3.0. I cannot manage to search within the pure css menu...
- Jan 18, 2010 - I want to use my own function within menuItems in the dhtml menu source item.
|