<head>与</head>之间

<script>
 var pop = window.createPopup();
 function popShow(msg)
 {
  with(pop.document.body)
  {
   style.backgroundColor = "lightyellow";
   style.border = "solid #b1b1b1 1px";
   innerHTML = "<div><font color=red>"+msg+"</font></div>";
  }
  pop.show(window.event.clientX,window.event.clientY + 10,100,100,document.body);
  
 }
 function popHide()
 {
  pop.hide();
 }
</script>

调用:
<a onMousemove="popShow('test popup <br> sss')" onMouseOut="popHide();">Test Popup</a>

Posted on 2006-12-09 15:06  Good Neo  阅读(252)  评论(0编辑  收藏  举报