JavaScript Menu, DHTML Menu Powered By Milonic
Demo - mm_setParentOverImage Function [extra rollover image]
for use with Milonic Solutions' DHTML Menu V5
This sample page was created in reference to this thread of discussion in "Help and Support for Version 5".

The mm_setParentOverImage() function allows a third image to be called in an image/overimage incident OnMouseOver of a related submenu item. The function can be used in more than one submenu item.

To activate the function in the above menu, mouseover Milonic then Faqs, and MouseOver Funstuff then Jokes

To use the mm_setParentOverImage() function:

  1. Place the following code at the top of your menu_data.js file
    function setParentOverImage(imageName) 
    { 
      parentItem = getParentItemByItem(_itemRef); 
       _mi[parentItem][32] = imageName; 
       BDMenu(_mi[parentItem][0]);
    }
    
  2. Call the function in the submenu aI string where you want the function to take place
    onfunction=setParentOverImage('third-image-here');offfunction=setParentOverImage('original-menu-overimage-here again')


  3. When you call the function, make sure the onfunction has the name (and path if needed) of the image you want to use as the extra, and the offfunction has the original overimage.
    In the above example for the FAQ image roll over it is:
    aI("text=FAQ;url=http://www.milonic.com/menufaq.php;onfunction=setParentOverImage('question.gif');offfunction=setParentOverImage('penfold_over.gif');");
DHTML Menu courtesy of Milonic Solutions
Download mm_setParentOverImage() sample