The way I wrote this script, you would need to use the:
javascript:void(javascript commands could go here)
in place of a URL. But, that causes problems in some browsers. You could, after setting up all the links and having something there for the ones that you want to have events, set the property in your menu to:
Code:
design_mode:true, //if true, generates a report of the script generated/intended styles and markup (as a design aid)
You will then get a display of the styles and markup. For what you are doing, you could then copy just the markup and use that with whatever edits you like to include events for some or all of the links. Once that is done you would set the above property back to false (or just delete it) and set this one:
Code:
user_defined_markup:true, //if true, prevents script from generating markup for this menu
The menu will then use your markup, not its own.
Bookmarks