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:32
Is there a js function to pop open a menu? [SOLVED]
Poster: Prefontim
Dated: Thursday June 28 2007 - 21:34:01 BST
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?
Poster: Ruth
Dated: Thursday June 28 2007 - 21:59:01 BST
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:
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://www.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;");
}
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://www.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