onmouseover event on css

liunx

Guest
Hello Guys, is there a way to place onmouseover event on css? For example;

<button class="butn" onmouseover="this.style.backgroundColor='#FFFFFF'" onMouseOut="this.style.backgroundColor='#E6F2FC'"> Button </button>


place the onmouseover in the css class, instead of inside the <button> tag ??.classname:hover

see <!-- w --><a class="postlink" href="http://www.vladdy.net/demos/iepseudoclassesfix.html">www.vladdy.net/demos/iepseudoclassesfix.html</a><!-- w --> for IE fix
 
Back
Top