use absolute positioning:<DIV style="position:absolute; HEIGHT: 306px;display: none; WIDTH: 94px" id="div_guanli">
...
</DIV><span onmouseover="showMenu()">move here to see the menu</span><script language="javascript">
function showMenu()
{
var c = document.all("div_guanli");
c.style.left = document.body.scrollLeft + event.clientX;
c.style.top = document.body.scrollTop + event.clientY;
c.style.display = "";
}
</script>
...
</DIV><span onmouseover="showMenu()">move here to see the menu</span><script language="javascript">
function showMenu()
{
var c = document.all("div_guanli");
c.style.left = document.body.scrollLeft + event.clientX;
c.style.top = document.body.scrollTop + event.clientY;
c.style.display = "";
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货