Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:31

How to close the menu?


Poster: WLQ
Dated: Friday August 3 2007 - 8:23:45 BST

I want to make a menu such as popup ads. And I can't find any functions on how to close the menu. If anybody knows please help.


Poster: Ruth
Dated: Friday August 3 2007 - 8:42:56 BST

Hi,

You could put this function at the top of the menu_data file and then call it in the aI

Code:
function mm_closeClickedMenu()
{
  menuDisplay(_mi[_itemRef][0], 0);
}


Code:
aI("text=Close;clickfunction=mm_closeClickedMenu();");


That aI string could be an image also, like an X

Code:
aI("image=close.gif;clickfunction=mm_closeClickedMenu();");


Ruth


Poster: WLQ
Dated: Friday August 3 2007 - 14:28:18 BST

Thank you it's working!