|
Is there any way through script to call the function in css menu bar?
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 menu bar?
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 navigation menus myspace?
- Jun 08, 2009 - Is it possible to call JScript functions from down menus css?
- Jun 12, 2009 - Is there a way to use smartscrolling function for the top menu dropdown?
- Aug 14, 2009 - I'm trying to simply use API functions to add some properties to my javascript menu navigation.
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the drop down menu css?
- Oct 31, 2009 - How to call my own function in the css menu maker?
- Nov 01, 2009 - Is it possible that your javascript navigation menu call some javascript on mouseover?
- Nov 05, 2009 - I tried to use javascript function within the "Title item" of my menu pull down.
- Nov 08, 2009 - How to call javascript function when the user click on a horizontal dhtml menu Items...
- Dec 20, 2009 - Is it possible to set script java menu 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 dynamic menu bar?
|