div
ユーザーがドキュメントをクリックした後に非表示にしようとしています。
<div class="active">
<a class="agree" href="javascript:;">I Agree</a>
<a class="disagree" href="javascript:;">Disagree</a>
</div>
次のソリューションを使用して -
var mouseOverActiveElement = false;
$('.active').live('mouseenter', function(){
mouseOverActiveElement = true;
}).live('mouseleave', function(){
mouseOverActiveElement = false;
});
$("html").click(function(){
if (!mouseOverActiveElement) {
//Do something special
}
});
私の問題は、内部のコンテンツが発砲を停止し、全体が再び開始されるようにunbind
するにはどうすればよいですか?html
do something special
現時点では - はhtml.click();
常に発砲し続けていますか?