1
I wanted to put two effect on the Onmouseover so that when you hover the mouse over it, the text would be of one color and the background with another color. I am using this code
onmouseover="javascript: this.style.backgroundColor = 'Red'"
but in this case it only changes the Background, as I do to add other properties???
You could create a style in CSS to make it default and use it wherever I want?
in this case you assigned the parameter p, but if I want to create a class and assign in some Divs for example (not in all) which solution? I tried to make .alteraCor{ Transition: all 0.5s; } alteraCor:Hover{ color: red; background-color: green; }
– Fabio Souza
It works too, can make this class this way it will work.
– Laércio Lopes