2010-05-18 18 views

回答

0

處理mouseenter事件,但什麼都不做if ($(e.target).is('img'))

然後,處理<img>元素的mouseenter事件,並撤銷效果。

+0

把在img.mouseover fonction結束返回(假)? 這是最好的解決方案嗎? – 2010-05-18 13:39:35

0

隨着

function do_trucs() { 
    ... 
} 

function do_machins() { 
    ... 
    return (false); 
} 

$('div').mouseover(do_trucs); 
$('div img').mouseover(do_machins); 

它的工作,但它是最簡單的/最佳的解決方案?

(反正我需要處理其他目的img.mouseover)

相關問題