JS-获得鼠标点击的位置

 var ev = ev || window.event;
var sx = ev.clientX + document.body.scrollLeft - document.body.clientLeft; 
     var ey = ev.clientY + document.body.scrollTop - document.body.clientTop;
posted @ 2009-10-26 11:42  风影极光  阅读(1817)  评论(0编辑  收藏  举报