Oycheungad (Talk | contribs) |
Oycheungad (Talk | contribs) |
||
Line 94: | Line 94: | ||
// calculate pageX/Y - logic taken from jQuery. | // calculate pageX/Y - logic taken from jQuery. | ||
// (This is to support old IE) | // (This is to support old IE) | ||
− | if (event.pageX == null&&event.clientX != null) { | + | //if (event.pageX == null&&event.clientX != null) { |
eventDoc = (event.target&&event.target.ownerDocument) || document; | eventDoc = (event.target&&event.target.ownerDocument) || document; | ||
doc = eventDoc.documentElement; | doc = eventDoc.documentElement; | ||
Line 105: | Line 105: | ||
(doc&&doc.scrollTop || body&&body.scrollTop || 0) - | (doc&&doc.scrollTop || body&&body.scrollTop || 0) - | ||
(doc&&doc.clientTop || body&&body.clientTop || 0 ); | (doc&&doc.clientTop || body&&body.clientTop || 0 ); | ||
− | } | + | //} |
document.getElementById("x")=event.pageX; | document.getElementById("x")=event.pageX; |
Revision as of 10:30, 3 September 2017
Name:
coorX: CoorY:
Our Advisors