<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>