我有这个函数,我想把它放在 .live() 中。我的问题是这个功能可以正常工作,但是下次“不刷新”它不起作用,所以我正在考虑在执行后重置“模糊”的值。我读过这可以在 .live() 中使用 .blur() 来完成,但我真的不知道该怎么做。需要了解更多关于 sintaxt 和回调的信息。
$(window).blur( function() {
// our window is on blur
if(overiFrame != -1 ){
// mouse over iframe and blur we count a click
llamarAjax(1, adTopSrc, adMidSrc, adBotSrc);
} else if(overiFrame2 != -1 ){
// mouse over iframe and blur we count a click
llamarAjax(2, adTopSrc, adMidSrc, adBotSrc);
}else if( overiFrame3 != -1 ){
// mouse over iframe and blur we count a click
llamarAjax(3, adTopSrc, adMidSrc, adBotSrc);
}
});
谢谢