|
|
Is there any way to call a javascript function on mouseover from a menu item for a sub navigation bar?
Return to Recent Questions
Q:
Is there any way to call a javascript function on mouseover from a menu item for a sub navigation bar?
A:
You can use your own javascript functions in the menu items.
You should paste "javascript:some_function()" into item's link field, for example:
var menuItems = [
["text", "javascript:your_function(...)", ...]
];
var menuItems = [
["item text", "javascript:alert('Hello World')", , , , ,]
];
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 menuitems = [
["item text ", "index.html"]
];
Return to Recent Questions
Related:
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 17, 2006 - How can your javascript onmouseover menu be set to open by click?
- Sep 18, 2006 - Does the js menu work to load pages into an iframe?
- Sep 22, 2006 - How to call the function in my java script menu?
- Sep 23, 2006 - Is it possible that your menu call some javascript onmouseover event?
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 29, 2006 - I tried to use javascript function with the "Title item" of my javascript tree view.
- Sep 30, 2006 - The frame below the javascript menubar is moved to the bottom of the page.
- Oct 19, 2006 - I want a javascript toolbar with all the buttons the same length.
- Oct 21, 2006 - I want to get the URL or file name to be open in javascript mouseover menu by click...
- Nov 05, 2006 - With the new version of javascript rollover menus, my body onload function is blocked.
|