All these answers are too complicated... Simple solution:
Javascript:
prevElement = null;
document.addEventListener('mousemove',
function(e){
var elem = e.target || e.srcElement;
if (prevElement!= null) {prevElement.classList.remove("mouseOn");}
elem.classList.add("mouseOn");
prevElement = elem;
},true);
Css:
.mouseOn{
background-color: #bcd5eb !important;
outline: 2px solid #5166bb !important;
}