openonclick and frames

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
morlandt
Beginner
Beginner
Posts: 1
Joined: Fri Nov 25, 2005 3:56 am

openonclick and frames

Post by morlandt »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

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

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
ntopolcsik
Beginner
Beginner
Posts: 1
Joined: Sat Jun 24, 2006 5:59 am
Contact:

Post by ntopolcsik »

Hi I just downloaded the latest frame demo (Version 5.751 )and having the same problem described above by morlandt.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

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
Post Reply