Detect mouse coordinates

//Mouse Coordinates
window.onload = ezbMouseInit;
function ezbMouseInit(){ document.onmousemove = ezbStoreCoords; }

function ezbStoreCoords(e){
var wrapWidth = ezbGetElementWidth('wrap');
var e = e;
if(e){
var mouseX = e.clientX;
var mouseY = e.clientY;
}
else{
var mouseX = event.clientX;
var mouseY = event.clientY;
}
}

0 Comments

You must be logged in to post a comment.