G
gsb
I track the mouse location like this code:
function mousePos(e) {
var p = new Object();
if(e) { p.x = e.pageX; p.y = e.pageY; }
else { p.x = event.x; p.y = event.y; }
... (show)
}
document.onmousemove=mousePos;
Seems to do fine on many browsers.
However, this does not track the mouse position when the left mouse button
is held down.
What changes will I need to track the mouse position when the left mouse
button is depressed and held down while moving the mouse?
Your help is appreciated.
Thanks,
gsb
function mousePos(e) {
var p = new Object();
if(e) { p.x = e.pageX; p.y = e.pageY; }
else { p.x = event.x; p.y = event.y; }
... (show)
}
document.onmousemove=mousePos;
Seems to do fine on many browsers.
However, this does not track the mouse position when the left mouse button
is held down.
What changes will I need to track the mouse position when the left mouse
button is depressed and held down while moving the mouse?
Your help is appreciated.
Thanks,
gsb