|
Is there any way through script to call the function in website navigation bars?
Return to Recent Questions
Q:
Is there any way through script to call the function that would
be called if the user clicked a website navigation bars?
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 javascript menu examples myspace?
- Jun 08, 2009 - Is it possible to call JScript functions from html code drop down menu?
- Jun 12, 2009 - Is there a way to use smartscrolling function for the top pull down menu javascript?
- Aug 14, 2009 - I'm trying to simply use API functions to add some properties to my javascript pop up menu.
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the css dropdown menus?
- Oct 31, 2009 - How to call my own function in the menus and navigation?
- Nov 01, 2009 - Is it possible that your down menu horizontal call some javascript on mouseover?
- Nov 05, 2009 - I tried to use javascript function within the "Title item" of my tab menu css.
- Nov 08, 2009 - How to call javascript function when the user click on a dhtml context menu Items...
- Dec 20, 2009 - Is it possible to set dhtml dynamic 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 multiple drop down menus?
|