我有这个脚本:弹出时消失的onmouseout
$(document).ready(function(){
$('.infoLink').hover(function(){
$('.shoutBox').hide();
$(".shoutBox"+$(this).attr("id")+"").toggle();
});
$('.closeLink').click(function(){
$(this).closest(".shoutBox").toggle();
});
});
我需要补充一点,这样,当参观者驻足徘徊在TE弹出链接弹出将dissappear。
弹出链接是一个小 “i” 按钮:
<a href="javascript:void(0);" class="infoLink rollover" id="box1"><img width="12" height="11" border="0" src="../path/to/randomimage.png" alt="" title="" /></a>
我尝试添加:像
$('.infolink').onMouseOut(function(close){
$('.shoutBox').close();
$(".shoutBox"+$(this).attr("id")+"").toggle();
});
东西......但是当你就会明白这...没有工作...
有人可以帮助我吗?
感谢百万以上;-) –
投票我的答案> –
也可能会接受它,如果你发现它很简单 –