<script>
$(document).ready(function () {
$('.ccc').mousemove(function (e) {
$('.ddd').text("( " + (e.clientX - $(this).offset().left) + ", " + (e.clientY - $(this).offset().top) + " )");
});
});
</script>
here is working example: fiddle