<html>
<body onmousemove="aa.style.top=(event.y+document.body.scrollTop);aa.style.left=(event.x+document.body.scrollLeft)">
<img id="aa" style="position:absolute; height:2px; width:1003px; background-color:blue; z-index:100" src="about:blank">
</body>
</html>
<body onmousemove="aa.style.top=(event.y+document.body.scrollTop);aa.style.left=(event.x+document.body.scrollLeft)">
<img id="aa" style="position:absolute; height:2px; width:1003px; background-color:blue; z-index:100" src="about:blank">
</body>
</html>
你只要加上滚动条的数据就可以了~!~~````