How to get Treemenu to autoexpand on mouseover

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jtnn
Beginner
Beginner
Posts: 1
Joined: Wed Sep 21, 2005 12:15 pm
Location: UK
Contact:

How to get Treemenu to autoexpand on mouseover

Post by jtnn »

I have implemented a tree menu (see http://new.capco.com ) but I would like the menu to autoexpand as the user hovers over an item (i.e. when they hover over a parent item, the child items are displayed).

I see this is the default behaviour in the horizontal drop-down menus, but it does not seem to operate on my menus.

Here is my menu_data.js

Code: Select all

_menuCloseDelay=500;           
_menuOpenDelay=150;            

AllMargin=50
treeOffset=10;
singleMasterMenu=true;

with(topMenuStyle=new mm_style()) {
	offclass="menu";
	onclass="menu_over";
	pageclass="menu_over";
	subimageposition="top left" ;
}

with(subMenuStyle=new mm_style()) {
	offclass="sub";
	onclass="sub_over";
	pageclass="sub_over";
	subimageposition="top left";
}
stuart
Advanced
Advanced
Posts: 14
Joined: Sat Aug 20, 2005 7:35 pm

Post by stuart »

Not tried this myself but the frames example uses the onfunction and offfunction properties to open and close submenues as below.

Code: Select all

aI("text=Top 1;showmenu=sub1;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");
Might be worth giving that a try

Stuart
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 not my area either, but the tree menu is designed to open on click, that is part of the programming in the module I believe. I don't think you can get it to open onmouseover. The whole purpose of a treemenu is to shift everything down, meaning if you click item two, all the items below it will shift downand remain visible while the submenu for two is open right below two. There wouldn't be anyway to get that function on mouseover as far as I can see.

Ruth
Post Reply