[thelist] how to unset a css pseudo-class by javascript ?

ben morrison morrison.ben at gmail.com
Fri Jun 30 05:12:36 CDT 2006


On 6/30/06, Olivier Percebois-Garve <percebois at gmail.com> wrote:
> Hi
> I don't think I'm confused, but maybe my explanation is.
> For the moment the script uses onClick, which is what I want.
>
> Basically, the user click  on the div  "A" and the div "B" is appearing.
> If he clicks again on "A", "B" disappears.
> That's functioning fine. I want nice degradation, so if javascript is
> off, I want that if the mouse is over "A", "B" appears.

How will you make B appear on mouseover with javascript off?

Nice degreadation would be:

Show B normally
Onload hide B with javascript by setting CSS display property.

Ben



More information about the thelist mailing list