我有一個腳本:請參閱小提琴http://jsfiddle.net/patrioticcow/ERTWT/。 當我將鼠標懸停在圖像上時,黑色的div滑落。我希望它能夠點擊該div並執行某些操作。現在,如果我將鼠標懸停在黑色格動畫發瘋:)jQuery將鼠標懸停在圖像上的問題
<div class="profile-img-edit">Change Profile Picture</div>
<img class="profile-img" src="http://download.exploretalent.com/media014/0000145198/0000145198_PM_1298338078.jpg">
$('.profile-img').hoverIntent(function() {
$('.profile-img-edit').slideDown();
}, function() {
$('.profile-img-edit').slideUp("fast");
});
我可以使用hover
代替hoverIntent
但並不十分可靠。
感謝