在jquery有沒有辦法阻止mouseout()
函數停止激活,當你超過某個div
它也不是一個孩子。我的html代碼。jquery mouse over
<div class="featured">
<div class="featured_top">
<p><span class="theme">Theme</span> Transparent </p>
</div>
<div class="pic" style="background: blue">
<!-- image -->
</div>
<div class="featured_des">
<p> this is awesome theme </p>
</div>
</div>
我的JS(jQuery的)
$(document).ready(function(){
$(".pic").mouseover(function(){
$(this).animate({
width: 0
});
});
$(".pic").mouseout(function(){
$(this).animate({
width: 214
});
});
});
所以我的問題是可您激活時,它是featured_des
DIV停止mouseout()
功能。 ATM它動畫的.pic
類的正常工作,但是當它完成animate
光標位於其激活mouseout
並隱藏描述featured_des
的寬度再次
例如::http://www.grubber.co.nz/developer/_social_development/market.html
當「it is featured_des div」停止時,你的意思是什麼? – j08691
你到底想做什麼? – SachinGutte
@ j08691當光標位於名爲'featured_des'的div類上時 – ryanc1256