Activating Functions on Mouseover |
Activating Functions on Mouseover |
The sample shows how you can include custom JavaScript functions that get activated
onMouseover, onMouseOut and onClick.
In order to have a function activated onMouseOver or onMouseOut you will need to include your function name within the aI text string of a menu item as in the following sample:. aI("text=Sample Item 1;onfunction=yourfunction('param1','param2')"); off function is the same but you change the onfunction to offfunction in the above aI text string. In order to have both onMouseOver and onMouseOut your menu item must look like this: aI("text=Sample Item 1;onfunction=youronfunction('param1','param2');offfunction=youronfunction('param3');"); If you need to have your menu activate a function onClick you would use a
menuitem like this: You can also include onMouseOut and onMouseOver functions to the above sample |
- Dynamic Downloads are possible for the Activating Functions on Mouseover demo
- The code for this menu sample will be generated on the fly and compiled into a .ZIP file format for downloading onto your own machine.
Click here to download this sample
Note that you need to logged in to download the menus and the download delivered will depend on your current license status.