禁止冒泡
//onmouseover、onmouseout解决停止冒泡问题
function isMouseLeaveOrEnter(e, handler) {
if (e.type != 'mouseout' && e.type != 'mouseover') return false;
var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ? e.toElement : e.fromElement;
while (reltg && reltg != handler)
reltg = reltg.parentNode;
return (reltg != handler);
};
调用
οnmοuseοver="if(isMouseLeaveOrEnter(event,this))realFuncionName"