PDA

Click to See Complete Forum and Search --> : Change DIV class on mouseover?


sail3005
May 18th, 2001, 09:29 PM
How can i change the class of a <div> or span when someone moves the mouse over it, or clicks on it?

sail3005
May 19th, 2001, 02:30 PM
come on...anyone?

scoutt
May 19th, 2001, 03:38 PM
just curious, but why would you want to do that?

sail3005
May 19th, 2001, 04:34 PM
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.

JoshT
May 21st, 2001, 06:35 AM
Did you trying something like:
[pseudocode]
divWorking.style = divTemplate.style

sail3005
May 21st, 2001, 05:55 PM
I'll give that a looking in to, thanks.