Thanks David, It does work!
And do does tr.style.backgroundColor = ''; Why did I look for something complex when solution was so simple :o) Thanks again! Eric On Dec 4, 1:08 pm, david <david.brill...@gmail.com> wrote: > Hi Eric, > > do you try to reset the element style property for background-color ?? > try this > new Effect.Highlight('b',{queue: 'end', afterFinish: > function() { $('b').setStyle({backgroundColor:''});}}); > > -- > david > > On 4 déc, 12:55, Eric <lefauv...@gmail.com> wrote: > > > Hi, > > > I have a table with even rows having an "even" class name. > > even changes the background color of the row: > > > tr.even { background-color: #def; } > > > My concern is that after using a Effect.Highligth on some rows, if I > > add or remove the even className to them, their background color > > doesn't change anymore. > > > I tried without success those 3 approaches: > > > new Effect.Highlight(tr,{queue: 'end', afterFinish: > > function() { tr.style.backgroundColor = undefined;}}); > > > new Effect.Highlight(tr,{queue: 'end', afterFinish: > > function() { tr.setStyle({'background-color: 'none'});}}); > > > new Effect.Highlight(tr,{queue: 'end', afterFinish: > > function() { tr.setStyle({'background-color': 'inherit'});}}); > > > Can anyone tell me what I am doing wrong? > > > Eric > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.