<script>
var popST=null;
var pop=window.createPopup();
function ShowPop(){
var obody=pop.document.body
obody.innerHTML="鼠标离开我后3秒将消失";
obody.style.border="solid 1px black";
obody.onmouseover=function(){
if(popST){clearTimeout(popST);popST=null;}
}
obody.onmouseout=function(){
popST=setTimeout(function(){pop.hide();},3000);
}
pop.show(100,100,100,100,document.body);
popST=setTimeout(function(){pop.hide();},3000);
}
</script>
<a href="#" onclick="ShowPop()">ShowPopup</a>
var popST=null;
var pop=window.createPopup();
function ShowPop(){
var obody=pop.document.body
obody.innerHTML="鼠标离开我后3秒将消失";
obody.style.border="solid 1px black";
obody.onmouseover=function(){
if(popST){clearTimeout(popST);popST=null;}
}
obody.onmouseout=function(){
popST=setTimeout(function(){pop.hide();},3000);
}
pop.show(100,100,100,100,document.body);
popST=setTimeout(function(){pop.hide();},3000);
}
</script>
<a href="#" onclick="ShowPop()">ShowPopup</a>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货