Change the background color of a div on hover over

Simple mouse event code to change the color when the user places the mouse over the div.
CSS • JavaScript


<div onmouseover="this.style.background='#F47c00'" onmouseout="this,style.background='#FF3300'">divcontent</div>

Written by Frank Joseph Brefere III

Posted by fbrefere001 on Saturday March 8, 2008