Milonic DHTML Menu Sample

Milonic DHTML Website Navigational Menu

Activating Functions

The Activating Functions 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 with an alertnate property like this example demonstrated.

,"Sample Item 1","link.htm onfunction=on_Func();",,,0

off function is the same but you change the onfunction to offfunction in the alternate properties. In order to have both onMouseOver and onMouseOut your menu item must look like this:

,"Sample Item 1","link.htm onfunction=on_Func();offfunction=off_Func();",,,0

If you need to have your menu activate a function onClick you would use a menuitem like this:

,"Click Here to Activate Alert Box","javascript:alert(\"Alert\")",,,0

You can also include onMouseOut and onMouseOver functions to the above sample

Please Note: For the menu to work correctly in any version of Opera you must place the menu references inside the BODY of your documents. Opera will not display if you put the references in the HEAD.

- For more up to the minute information on new features and bug fixes visit Version Info
- Please join our Menu Newsletter, it's the best way to keep informed of new versions Join Newsletter here
- To open a page in another frame add " target=yourframe" to the link text for example
  ,"Your Text", "yourlink.htm target=yourframe",,,1
  You can also use _blank _new and _self etc. . . .
- To add more menus simply copy and paste other menu elements and edit them to suit.
- To position your menu anywhere on screen set the Top & Left values and remove any reference for "Screen Position"
- Offsets can be applied to both Top & Left positions for example:
- Information on commercial licenses can be found Here

      addmenu(menu=[
      "mainmenu",	// Menu Name
      20,		// Menu Top
      "offset=-200",	// Menu Left
      ,		// Menu Width
      1,		// Menu Border Width
      "center",	// Screen Position
      style1,		// Properties Array
      1,		// Always Visible
      "left",		// Alignment
      .......................

  The above will position the menu in the center of the screen minus 200 pixels.

- Please subscribe to the mailing list to be kept informed of updates Here