How can I assign onClick event to css horizontal drop down menu?
Return to Recent Questions
Q:
Hi there ... how do I add in the following javascript code so an exit pop doesn't go off:
onClick="exit=false;"
I read this page, but it didn't work
http://deluxe-menu.com/javascript-link-menu-support.html#
A:
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 onClick='your_code_here'>item text</div>", "index.html"]
];
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 26, 2006 - Firefox doesn't support the dropshadow and effects in the javascript pull down menu.
- Sep 29, 2006 - Is it possible to use an external file in the java drop down menu?
- Oct 01, 2006 - All of the items in html pull down menu are different sizes.
- Oct 01, 2006 - When I click on link of my vertical drop down menu no file is loaded!?
- Oct 07, 2006 - How do you change the back ground color of the javascript horizontal menus?
|