日期:2014-05-16 浏览次数:20386 次
document.onmousemove = moveGuides; function moveGuides(e) { if (!guidesState) { return false; }; e = window.event ? window.event : e; dollar("guidesYLine").style.left = browserIsIE ? (e.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft)) + guidesSkew + "px" : e.pageX + guidesSkew + "px"; dollar("guidesXLine").style.top = browserIsIE ? (e.clientY + (document.documentElement.scrollTop || document.body.scrollTop)) + guidesSkew + "px" : e.pageY + guidesSkew + "px"; }