Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:23

openonclick and frames


Poster: morlandt
Dated: Friday November 25 2005 - 3:14:05 GMT

Hi, our company website uses two horizontal frames, one contains the menu and the other the content. Is there a way to make the main menu pop-up the submenus in the content frame on mouse click instead of on hover? I'm aware of the openonclick attribute but it doesn't seem to work with frames?


Thanks,
Thomas Morland


Poster: Ruth
Dated: Wednesday November 30 2005 - 18:42:25 GMT

Hi,

This is being fixed in the new version. You can get notified in the forum about the newest updates.

http://www.milonic.com/forum/viewtopic.php?t=3108

Someplace on that page depending on the style you use is a link that says watch this topic. In the Blueglass it's at the bottom left of the page.

Ruth


Poster: ntopolcsik
Dated: Saturday June 24 2006 - 6:08:09 BST

Hi I just downloaded the latest frame demo (Version 5.751 )and having the same problem described above by morlandt.


Poster: Ruth
Dated: Wednesday June 28 2006 - 17:35:15 BST

Hello,

The frames menu is set up to use the onfunction=OpenSubMenu. The default for the menu is to open submenus on mouseover, to change that you need to change the call from onfunction= to clickfunction=

Code:
with(milonic=new menuname("mainMenuHoriz")){
style=mainStyleHoriz;
top=0;
left=129;
orientation="horizontal";
alwaysvisible=1;
aI("text=Home;url=body.htm;target=body;");
aI("text=Top 1;showmenu=sub1;target=body;clickfunction=openSubmenu();offfunction=closeSubmenu();");
aI("text=Top 2;showmenu=sub2;target=body;clickfunction=openSubmenu();offfunction=closeSubmenu();");
aI("text=Top 3;showmenu=sub3;target=body;clickfunction=openSubmenu();offfunction=closeSubmenu();");
aI("text=Google in Body;url=http://www.google.com/;target=body;")
aI("text=Google in New;url=http://www.google.com/;target=_new;")
}


Hope that helps.

Ruth