$("body").delegate(".ShowIconWin", "mouseenter mouseleave", function(e) { if (e.type == 'mouseenter') { // over } else { // out } });