How can i change the class of a <div> or span when someone moves the mouse over it, or clicks on it?
Printable View
How can i change the class of a <div> or span when someone moves the mouse over it, or clicks on it?
come on...anyone?
just curious, but why would you want to do that?
I know it is possible. I could actually do it for many reasons. One would be to get links to change color on mouseover in netscape. But what i am trying to do now is make some code to make my own type of buttons. I am using css for mouseover, but there is no way to do mousedown that i can see.
Did you trying something like:
[pseudocode]
divWorking.style = divTemplate.style
I'll give that a looking in to, thanks.