element.addEventListener('mouseover',someFunction);
element.onmouseover = function() {
//Hovering
}
// You can use jQuery
$("p").hover(function(){
$(this).css("background-color", "yellow");
}, function(){
$(this).css("background-color", "pink");
});
if(element.style.className.hovered === true) {do something}
onmouseover event