When I select item from the mouseover menus it takes me to a link on a website, is it possible to run a javascript instead?
Return to Recent Questions
Q:
When I select something from one of the mouseover menus it takes me to a link on a website,
is it possible to run a javascript instead?
A:
Actually you can use your own Javascript code instead standard links and html code inside item text. For example:
var bmenuItems = [
["text", "javascript:your_code_here"]
];
or
var bmenuitems = [
["<div onClick='urlSubstitution(\'transco/sheet.asp?stype=1\')'>Table of Contents</div>", ""]
];
Return to Recent Questions
Related:
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 15, 2006 - Are vertical menus also supported? I don't see any in the javascript menu examples.
- Sep 17, 2006 - How can your javascript onmouseover menu be set to open by click?
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 23, 2006 - Is it possible that your menu call some javascript onmouseover event?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Oct 07, 2006 - How do you change the back ground color of the javascript horizontal menus?
- Oct 15, 2006 - There's some problems when we use two javascript horizontal menus.
- Oct 15, 2006 - Submenus doesn't position correctly in my javascript template.
- 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.
|