(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    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:
Fine Responsive Web Page Builder | Overview Effective Web Page Design Tools  |  First-rate Easy Website Builder | How-to Guide  |  Fantastic Bootstrap Page Themes For Your Company  |  Reputable Drag and Drop Web Builder | Overview  |  Exceptional Drag and Drop Web Maker App - Honest Review  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | Best AI Website Builder | AI Website Generator | AI web design generator | AI website design generator