function movePic(){ _x=window.event.ClientX; _y=window.event.ClientY; }
<script type="text/javascript"> window.onload = function(){ var element = document.createElement('div'); document.body.appendChild(element); document.onmousemove = function(event){ event = event || event.window; element.innerHTML = event.clientX; }; }; </script>