[SOLVED] Current mouse position and use later
-
<script type="text/javascript">
$(document).ready(function(e){
$(document).mousemove(function(e){
x = e.pageX;
y = e.pageY;
});
})
</script>
With this whenever the mouse moves the x and y are updated with the current position. What I want to do is everytime the mouse moves x+50 or y+50 I want to alert('it works');
Anyone have a good idea on how to go about doing this?
Thanks for your time.
Rob