Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

style hover js

<div id="mydiv">foo</div>

<script>
document.getElementById("mydiv").onmouseover = function() 
{
    this.style.backgroundColor = "blue";
}
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #style #hover #js
ADD COMMENT
Topic
Name
9+8 =