Line 14: | Line 14: | ||
if (!e) var e = window.event; | if (!e) var e = window.event; | ||
− | + | // if (e.pageX || e.pageY) | |
− | { | + | //{ |
− | + | // x = e.pageX; | |
− | + | // y = e.pageY; | |
− | + | // } | |
− | + | if (e.clientX || e.clientY) | |
{ | { | ||
x = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; | x = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; |
Revision as of 19:37, 1 November 2017