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:00
open submenu from <a> tag
Poster: ljp007
Dated: Tuesday July 18 2006 - 18:35:23 BST
I dont want to use milonic to generate my main menu, instead, I want to use milonic to open sub menus from the <a> tags in my main menu. For example:
<a href=#" onmouseover="ShowOpenCubeSubMenu">Home</a>
I cant find any samples which illustrate how this is achieved. Any help would be appreciated.
-lance
Poster: John
Dated: Tuesday July 18 2006 - 22:37:14 BST
Maybe this will help a bit. See http://www.west.asu.edu/sai/. That main menu is all graphics, as defined here...
Code:
with(milonic=new menuname("XPMain")){
style=XPMainStyle;
top = 78;
left = 0;
alwaysvisible = 1;
orientation = "horizontal";
aI("image=/sai/graphics/home.jpg;showmenu=home;url=/sai/;");
aI("image=/sai/graphics/staff.jpg;showmenu=staff;");
aI("image=/sai/graphics/tech.jpg;showmenu=tech;");
aI("image=/sai/graphics/new.jpg;showmenu=new;");
aI("image=/sai/graphics/edit.jpg;showmenu=edit;");
aI("image=/sai/graphics/services.jpg;showmenu=services;");
aI("image=/sai/graphics/about.jpg;showmenu=about;");
}
style=XPMainStyle;
top = 78;
left = 0;
alwaysvisible = 1;
orientation = "horizontal";
aI("image=/sai/graphics/home.jpg;showmenu=home;url=/sai/;");
aI("image=/sai/graphics/staff.jpg;showmenu=staff;");
aI("image=/sai/graphics/tech.jpg;showmenu=tech;");
aI("image=/sai/graphics/new.jpg;showmenu=new;");
aI("image=/sai/graphics/edit.jpg;showmenu=edit;");
aI("image=/sai/graphics/services.jpg;showmenu=services;");
aI("image=/sai/graphics/about.jpg;showmenu=about;");
}
Hover over a graphic and the sub-menu drops, as generated by Milonic. I suspect you could replace the showmenu= with a URL.
Short on time right now. Sorry. Let us know if that helps.
Poster: Ruth
Dated: Wednesday July 19 2006 - 5:09:44 BST
Hi,
Are you saying you want the submenu to open from a link in your menu? That's done with the showmenu when you mouseover the item. If you mean you want the submenus to open from a link on your page then you want sample 24 which is opening menus using the pop function.
http://www.milonic.com/menusample24.php
You can also see methods and functions for explanations of the popup and popdown and how to use them. It's at the bottom of the page.
http://www.milonic.com/menu_methods.php
Ruth