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

How to get Treemenu to autoexpand on mouseover

Poster: jtnn
Dated: Wednesday September 21 2005 - 12:22:45 BST

I have implemented a tree menu (see ) 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



with(topMenuStyle=new mm_style()) {
   subimageposition="top left" ;

with(subMenuStyle=new mm_style()) {
   subimageposition="top left";

Poster: stuart
Dated: Thursday September 22 2005 - 22:06:24 BST

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

aI("text=Top 1;showmenu=sub1;target=body;onfunction=openSubmenu();offfunction=closeSubmenu();");

Might be worth giving that a try


Poster: Ruth
Dated: Friday September 23 2005 - 2:07:47 BST


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.