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

Custom style (offclass and onclass): submenu remains open


Poster: foxtrotcharlie
Dated: Tuesday August 28 2007 - 17:30:26 BST

I'm using a vertical menu, and have used a custom onclass and offclass style for the individual items in each menu. The problem is in internet explorer (7), if you *quickly* run your cursor up the menu, from the bottom to the top, a submenu opens and the styles as specified in the onclass stay on the screen (although the text does not appear or stay).

Using version 5.779 and site url is: http://www.tips.org.za/

When I comment out the onclass and offclass in my stylesheet (style.css), the problem goes away. I know I can use the separator attribute but this doesn't allow me to put a line above the top menu item and below the bottom menu item.


Poster: Ruth
Dated: Wednesday August 29 2007 - 3:06:19 BST

Hi,

It seems to be something to do with the ticker. When I removed that the problem went away. This is not something for which I can provide help. You'll have to contact Milonic. Since you have a professional license, go to the main site, http://www.milonic.com/ and at the bottom text link Tech Support click and follow the directions.

Just as an aside, there is a much simpler way to do the use of offclass and onclass so you don't have to call it in each item.

Place this in the menuStyle declaration

Code:
offclass="milonic-menu-main";
     onclass="milonic-menu-main-over";


Then create a copy of for the submenus, using the off and on class for the subs instead. Don't forget to assign the style=subStyle

Code:
subStyle=new copyOf(menuStyle);
subStyle.offclass="milonic-menu-sub";
subStyle.onclass="milonic-menu-sub-over";


That would be placed right below the end of the menuStyle. Then you wouldn't have to put it into each item, the first one would apply to the main menu which uses menuStyle and the second class for the subs would apply to any menu using subStyle.

Also, there is a quicker way to now do the relative positioned menu so you don't have to split the files. Leave the main in the data file along with the position="relative"; and at the top of the file, add buildAfterLoad=true; Then call all the files in the table or div where you want the menu. It's Method 1 shown on this page. You can still do it the way you have it, no problem, this is just another way that Milonic developed to make it easier.

http://support.milonic.com/beginners/ta ... /index.htm

Ruth

Thanks


Poster: foxtrotcharlie
Dated: Wednesday August 29 2007 - 7:51:36 BST

Great - thanks for your help Ruth!