Pues...
http://www.google.es/search?q=coorde...script+firefox
Una búsqueda en google y el primer resultado....
Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
</head>
<body>
<input type="text" id="caja" />
<script>
var isIE = document.all?true:false;
if (!isIE) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMousePosition;
function getMousePosition(e) {
var _x;
var _y;
if (!isIE) {
_x = e.pageX;
_y = e.pageY;
}
if (isIE) {
_x = event.clientX + (document.body.scrollLeft);
_y = event.clientY + (document.body.scrollTop);
}
document.getElementById("caja").value=_x +" , "+ _y;
return true;
}
</script>
</body>
</html>
Y lo adaptas a lo que quieras.
Procura buscar antes de preguntar.
Saludos.