Line 13: | Line 13: | ||
var y=0; //e.pageY; | var y=0; //e.pageY; | ||
− | + | if (!e) var e = window.event; | |
if (e.pageX || e.pageY) | if (e.pageX || e.pageY) | ||
{ | { | ||
Line 24: | Line 24: | ||
y = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; | y = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; | ||
} | } | ||
+ | |||
+ | alert(x + "+" + y); | ||
if(x>=27) | if(x>=27) |
Revision as of 19:21, 1 November 2017