In javascript we can find the mouse cursor points - the coordinate of the mouse pointer by using the following javascript function.
$().mousemove(function(e){
$('div').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY);
});
</script>
<div>
$('div').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY);
});
</script>
<div>
</div>
The above function display the
x and y axis values inside the div element.
In some browser need jquery.js
file .. This file is available in many websites.
0 comments:
Post a Comment