Diodeus wrote:

> .row0 {
> background-color:#c0c0c0;
> }
> .row1 {
> background-color:#e0e0e0;
> }
> .row0highlight{
> font-weight:bold;
> }
> .row1highlight{
> font-weight:bold;
> 
> so you'd do :
> 
> onmouseover="$('mydiv').addClassName('row0highlight')"
> onmouseoout="$('mydiv').removeClassName('row0highlight')"
> }

Or even better...

.even { background-color:#c0c0c0 }
.odd  { background-color:#e0e0e0 }
.highlight { font-weight:bold }

And then :
onmouseover="$('mydiv').addClassName('highlight')"
onmouseoout="$('mydiv').removeClassName('highlight')"

No need to have a classnames like .row0highlight when elements can have multiple
class names.

-- 
Michael Peters
Developer
Plus Three, LP


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to