Tryit Editor v1.4

<html> <head> <script type="text/javascript"> 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 id="trail" style="visibility:hidden">Cursor Text</span> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself