Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to apply hover through inline css

document.getElementById("mydiv").onmouseover= function(e){this.className += ' my-special-class'; };
document.getElementById("mydiv").onmouseleave= function(e){this.className = this.className.replace('my-special-class',''); };
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #apply #hover #inline #css
ADD COMMENT
Topic
Name
4+9 =