Milonic Home Page Information and Benefits of Milonic Products Some Samples of DHTML and JavaScript Products Download DHTML Menu Purchase Milonic JavaScript DHTML Products Tech Support Contact Milonic
Member Login - Sitemap
Current Menu Version: 5.955 dated Sunday April 14 2024 Click to Download
Activating Functions on Mouseover














Activating Functions on Mouseover
Menu Item Reference:
Menu Item Text:
Menu Reference:
Menu Name:
Parent Menu Item:
Parent Menu:
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:

aI("text=Sample Item 1;url=javascript:alert('Displaying an alert box');");

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.

Purchase The Menu

Download DHTML Menu

See our list of Menu users

Milonic provide full featured pull down web menus for some of the worlds largest companies

Learn about how Milonic's DHTML menus can benefit your site

What does it cost? DHTML Menu prices

Who is using us?
Sample Client list

Bespoke menu design and build service from the Milonic team

Our bolt-on modules provide free optional extras for specialist projects

Free icons and images for all licensed users with our Menu Imagepack

What is Milonic up to at the moment? Check our blog