jQuery: Change bg color on hover
HTML
<div id="article-container" style="background-color:green;">Div 1</div>
JavaScript
( function() {
var colors = ['#0000FF'];
$("#article-container").hover(function() {
$(this).css("background", colors[(Math.random() * colors.length) | 0])
}, function() {
$(this).css("background", "")
});
} )( jQuery );