A very basic implementation of the mouse tracking could look like this: http://jsfiddle.net/pksah/
HTML:
<body>
<div id="container"></div>
</body>
JS:
currentPosition = null;
$("#container").on("mousemove", function (event) {
currentPosition = event;
});
setInterval(function () {
console.log(currentPosition.pageX + "," + currentPosition.pageY);
}, 1000)
CSS:
#container {
width:100%;
height:300px;
background:yellow;
}