Hi,
I’m trying to create a hand that scrolls, like the one in photoshop
1) so far i have been unable to make the page move in the same direction as the mouse (the script below makes the page go the opposite direction.
2) i have also been unable to figure out how to capture the position of the mouse on the mousedown.
please help!!!
function MouseXX(e){
if (!document.all){
MouseXNow=e.pageX;
MouseYNow=e.pageY;
}
else{
MouseXNow=event.clientX;
MouseYNow=event.clientY;
}
window.scroll(MouseXNow,MouseYNow);
document.captureEvents(event.MOUSEMOVE);
}
<body>
onMousedown= “document.onmousemove=MouseXX”
onMouseUp=”document.onmousemove=null”