example usage of onclass/offclass properties

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
brett4got
Beginner
Beginner
Posts: 2
Joined: Mon Jun 16, 2003 9:30 pm
Location: Ohio

example usage of onclass/offclass properties

Post by brett4got »

I noticed that the new version now lets you customize the menu using css. Are there any examples of what properties you can set using css classes?

I would assume things like border-style, border-width, color, background-color??

I guess I can always do some testing but I thought I would check to see if anyone had any examples first. Ideally, I would like to create one similar to the xp style menu inlcuded with the source.

--Brett
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

This all depends on your browser.

Netscape 4.x has diabolical support for CSS and so won't work at all. IE4.0 will only support CSS1 but IE6.0 should support most CSS2 features.

Netscape 7+, Mozilla and Opera 7+ should support nearly all CSS2 features.

All you need to do is declare your onclass and offclass in the menu and then try it out.

It hasn't had much testing but should work ok

Let me know how you get on

Cheers
Andy
xMANIGHTx
Super Advanced
Super Advanced
Posts: 53
Joined: Fri Nov 08, 2002 10:17 am

Post by xMANIGHTx »

I'm doing some test with onclass/offclass.
Ip ut this property in the style definition this way:
onclass="classname"

Then in my css I created:
.classname { ... }

One thing I'm still missing is, how to render the menu with the offclass properties from the start.
Infact the offclass seem to work when you mouseout of the menu, but the style used in offclass, should be set from the start on the menu, before you go over it, or there should be another class property (startclass?) to set the starting gfx.
Having menu style fully configurable from css would be a great feture..
And maybe even having positioning from css would be a great addon. Infact this would integrate perfectly in a "modular skin system" where users can choose their layout and gfx.
Actually I'm doing the same thing but with a great effort in ASP/SQL coding and caching, to change the menu gfx and layout together with the whole site skins. (Soon I'll put up the skin example too)
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

OK, it's a bug then.

I've added it to the To-Do list and should get it done in the next day or so.

Cheers
Andy
brett4got
Beginner
Beginner
Posts: 2
Joined: Mon Jun 16, 2003 9:30 pm
Location: Ohio

Post by brett4got »

fwiw: I just put a span tag around the menu using the offclass as the class which took care of this problem
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

I've sorted this for version 4b.1.13 due to go up later today.

Cheers
Andy
Post Reply