It's adding an inline-style to the element – there's no way to alter a 
pseudo-class inside an inline-stype attribute.

Create a test-case on jsfiddle.net, and we'll try to help out.

Oskar

On 6 Jun 2010, at 16:58, Simon Vart wrote:

> Hi,
> 
> I have just a simple question about accordion, i didn't find the
> answer.
> 
> When I use the onActive and onBackground events, which works
> absolutely fine. I just noticed that the pseudo-class :hover I'm using
> on the css doesn't work anymore ; I believe this is because I change
> the text color wit hthe onBackground event, so the color is now fixed
> in a javascript way, which takes precedence on css.
> 
> Is this correct, is there a way to make css pseudo-class :hover
> working ?
> 
> (anyway, i could use some javascript to create the hover effect, but
> it would save some lines of code)

Reply via email to