|
Is there any way through script to call the function in css drop down menu?
Return to Recent Questions
Q:
Is there any way through script to call the function that would
be called if the user clicked a css drop down menu?
A:
You're able to use Javascript for each item, for example:
var bmenuitems = [
["item text", "javascript:your_code_here"]
];
Unfortunately, you can't assign onmouseover/onClick event to each item.
However, you can achieve this by using standard html objects within
items, for example:
var bmenuitems = [
["<div onClick='your_code_here'>item text</div>", "index.html"]
];
Return to Recent Questions
Related:
- March 29, 2009 - How could I call a script instead of specifying a link in dynamic navigation menu myspace?
- Jun 08, 2009 - Is it possible to call JScript functions from horizontal navigation menu?
- Jun 12, 2009 - Is there a way to use smartscrolling function for the top dhtml menu javascript?
- Aug 14, 2009 - I'm trying to simply use API functions to add some properties to my dhtml select.
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the horizontal menu bar?
- Oct 31, 2009 - How to call my own function in the drop down menu html?
- Nov 01, 2009 - Is it possible that your dhtml popup menu call some javascript on mouseover?
- Nov 05, 2009 - I tried to use javascript function within the "Title item" of my html mouseover.
- Nov 08, 2009 - How to call javascript function when the user click on a menus for web Items...
- Dec 20, 2009 - Is it possible to set drop down menu in javascript up so the javascript function runs when clicking a tab?
- September 16, 2010 - I need to know if I can call js functions using the .js file in menu dinamico javascript?
|