How to close the menu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
WLQ
Super Advanced
Super Advanced
Posts: 35
Joined: Fri Aug 03, 2007 8:18 am

How to close the menu?

Post by WLQ »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

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

Code: Select all

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

Code: Select all

aI("text=Close;clickfunction=mm_closeClickedMenu();"); 
That aI string could be an image also, like an X

Code: Select all

aI("image=close.gif;clickfunction=mm_closeClickedMenu();"); 
Ruth
WLQ
Super Advanced
Super Advanced
Posts: 35
Joined: Fri Aug 03, 2007 8:18 am

Post by WLQ »

Thank you it's working!
Post Reply