I have a link that I'd like to assign a new css class style to on mouse click. I tried this, but it doesn't work
Notice the code that says 'this.style.class=cur01'. This doesn't do anything. I know the CSS class "cur01" is valid because when I assign the class='cur01' property to the element, it accepts it allright.
It's because class is not a
It's because class is not a style property. You can do:
etc, but not class. I think (not that good on js) that you need this.className=... instead.
ah, ok. You're right. I had
This did the trick.