Tag Archives: Text move on mouse cursor

Text move on mouse cursor

Text move on mouse cursor <html> <head> <script> function cursor(event) { document.getElementById(‘trail’).style.visibility=”visible”; document.getElementById(‘trail’).style.position=”absolute”; document.getElementById(‘trail’).style.left=event.clientX+10; document.getElementById(‘trail’).style.top=event.clientY; } </script> </head> <body onmousemove=”cursor(event)”> <h1>Move the cursor over this page</h1> <span style=”visibility:hidden”>Cursor Text</span> </body> </html> CURSOR POSITION X Y COORDINATES OF WINDOWS: <html> <head> <script> function show_coords(event) { x=event.clientX; y=event.clientY; alert(“X coords: ” + x + “, Y coords: […]