20-06-2011, 03:45 PM
Ceci ?
Here is an example of finding the position within the particular element rather than the page:
http://docs.jquery.com/Tutorials:Mouse_P...hat_div.3F
Here is an example of finding the position within the particular element rather than the page:
$("#special").click(function(e){
var x = e.pageX - this.offsetLeft;
var y = e.pageY - this.offsetTop;
$('#status2').html(x +', '+ y);
});
http://docs.jquery.com/Tutorials:Mouse_P...hat_div.3F