V5 - CSS style

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
topachou
Advanced
Advanced
Posts: 24
Joined: Wed Aug 06, 2003 10:18 pm

V5 - CSS style

Post by topachou »

Is there a way to reach the elements in the menu like that :
document.getElementById('link1').style.background = '#cccccc';

I'd like to change some CSS properties of the menu on the fly.

Is it possible ?

================

And can we customize a menu with CSS style that reside in .css file ?
I'd like to use some CSS classes on my menu.

Is it possible ?

Thanks.
topachou
Advanced
Advanced
Posts: 24
Joined: Wed Aug 06, 2003 10:18 pm

Post by topachou »

No clue ?

Unfortunately, the milonic support is down for the moment. And I can't log in to ask any questions.

So maybe, someone has an answer here ?
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Individual properties, I doubt since you would have to hack the menu to either (1) find out what IDs Andy is giving all the objects in the menu so you can access them, or (2) find out how down in the hierarchy of things they are so you can access them using .child(0).child(2).child(1)...etc. But there is a conveniently created menuitem property called onclass and offclass. See http://milonic.com/itemproperties.php to get a listing of all the good things you can control. You can reference any class thats in scope in the page with the onclass and offclass.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
topachou
Advanced
Advanced
Posts: 24
Joined: Wed Aug 06, 2003 10:18 pm

Post by topachou »

Thank you very much for your answer.
Post Reply