prova così:
Codice HTML:
<html>
<head>
<script>
function image(e)
{
if(!e.pageX){
document.getElementById("im").style.left = e.clientX + document.body.scrollLeft + 18 + "px";
document.getElementById("im").style.top = e.clientY + document.body.scrollTop + 33 + "px";
}else{
document.getElementById("im").style.left = e.pageX + 18 + "px";
document.getElementById("im").style.top = e.pageY + 33 + "px";
}
}
</script>
</head>
<body onmousemove="image(event)">
<img id="im" src="1.jpg" style="position:absolute; top: 0px; left:0px;"/>
</body>
</html>