用javascript 的鼠标事件function ShowEvent(e){
document.writeln("鼠标目前x位置" + e.screenX+ "<BR>")
......e.screenY
}
document.onmousedown=ShowEvent;具体内容参阅javascript
document.writeln("鼠标目前x位置" + e.screenX+ "<BR>")
......e.screenY
}
document.onmousedown=ShowEvent;具体内容参阅javascript
{
public void mouseMoved(MouseEvent e)
{ }
});
MouseEvent.getX()/getY()即可得到mouse的x/y坐标