<html>
<body>
<script language="JavaScript">
function function2() {
mySX.innerHTML = window.event.screenX;
mySY.innerHTML = window.event.screenY;
}
</script>
<p>
<b>Screen X:</b>
<span id="mySX">0</span>
</p>
<p>
<b>Screen Y:</b>
<span id="mySY">0</span>
</p>
<div id="myDiv"
onmousemove="function2();"
style="border:solid; width:200; height:50; overflow:scroll;">
<img src="yourimage.gif">
</div>
</body>
</html>
|