PDA

Click to See Complete Forum and Search --> : mouse follow me


lirlir
Jul 11th, 2000, 07:26 AM
i m trying to write the mouse x,y OnMouseMove

to do so i wrote this code ,but it only execute 1 time.

<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

function document_onmousemove() {
var x;
var y;

x=window.event.x;
y=window.event.y;

document.write(x+"."+y);

}
//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmousemove>
<!--
document_onmousemove()
//-->
</SCRIPT>

1. how to so ?
2. what is the code for mouse follow me by an icon or lable