|
|
Is there any way to call a javascript function on mouseover dhtml menubar?
Return to Recent Questions
Q:
Is there any way to call a javascript function on mouseover from a menu item?
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 = [
["<div onMouseover='your_code_here'>item text</div>", "index.html"]
];
Return to Recent Questions
Related:
- Sep 06, 2006 - The Items of the javascript tree view stay expanded in the same state.
- Oct 05, 2006 - Is it easy to incorporate your Menu into a website created on Front Page?
- Nov 05, 2006 - With the new version of javascript rollover menus, my body onload function is blocked.
- Nov 28, 2006 - I downloaded the trial version, but where to find the scroll menu javascript?
- Dec 15, 2006 - I can't see floating menubar on my test page only direct links...
- Dec 31, 2006 - I only want one sub-menu to have multi-columns in html dropdown menu.
- Jan 18, 2007 - Why can't I have more than 5 buttons in vista 1 html menu examples?
- Feb 03, 2007 - Is there some chance to use calling of JScript function from javascript hide menu?
- Feb 20, 2007 - We want to set a specific width for each item on top level of the jump menu code
- March 07, 2007 - Will I have issues with the key in hover menus if my site has multiple host headers
- March 24, 2007 - Can I set pointer that tells path to all hierarchical menu files?
|