Custom style (offclass and onclass): submenu remains open

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
foxtrotcharlie
Beginner
Beginner
Posts: 7
Joined: Fri Mar 10, 2006 1:31 pm

Custom style (offclass and onclass): submenu remains open

Post by foxtrotcharlie »

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

Post by Ruth »

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

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

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
foxtrotcharlie
Beginner
Beginner
Posts: 7
Joined: Fri Mar 10, 2006 1:31 pm

Thanks

Post by foxtrotcharlie »

Great - thanks for your help Ruth!
Post Reply