Is there a js function to pop open a menu? [SOLVED]

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Prefontim
Advanced
Advanced
Posts: 13
Joined: Sun Jun 26, 2005 9:08 pm

Is there a js function to pop open a menu? [SOLVED]

Post by Prefontim »

I would like to open the main menu when a button is clicked on.

I am looking for a js function, similar to 'popup()', to show this milonic menu. I know one exists, since Milonic must execute it on a menu mouseover. Are they exposing one for us to use?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Just set up the menu data file so that your main menu is actually that button, and have it open the real main, whatever you want to name it. Set the button to open on click.

So, for example, using the downloaded data file your menus would be

Code: Select all

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("image=blueheaderleft.gif;showmenu=real main;openonclick=1;");
}

with(milonic=new menuname("real main")){
orientation="horizontal";
style=menuStyle;
aI("text=Home;url=http://milonic.com/;");
aI("showmenu=Samples;text=Menu Samples;");
aI("showmenu=Milonic;text=Milonic;");
aI("showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=MyMilonic;text=My Milonic;");
}
I just used an available image, but you could use text like text=MENU;

Ruth
Last edited by Ruth on Thu Jul 05, 2007 3:37 am, edited 1 time in total.
Prefontim
Advanced
Advanced
Posts: 13
Joined: Sun Jun 26, 2005 9:08 pm

Post by Prefontim »

Thankyou very much. That idea worked out great, and isn't hackish like my all of my ideas were
Post Reply