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?
Is there a js function to pop open a menu? [SOLVED]
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
I just used an available image, but you could use text like text=MENU;
Ruth
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;");
}
Ruth
Last edited by Ruth on Thu Jul 05, 2007 3:37 am, edited 1 time in total.