W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <style> body { background:#000000; color:#00FF00; font-weight:bold; } a{color:#CCCCCC;} </style> <script type="text/javascript"> function cursor(text) { trail.innerHTML=text trail.style.visibility="visible" trail.style.position="absolute" trail.style.left=event.clientX+10 trail.style.top=event.clientY } function hidecursor() { trail.style.visibility="hidden" } </script> </head> <body> <h1>请把鼠标移动到链接上:</h1> <a href="/index.html" onmousemove="cursor('访问 W3School.org.cn')" onmouseout="hidecursor()">W3School.org.cn</a><br /> <a href="http://www.altavista.com" onmousemove="cursor('转到 AltaVista')" onmouseout="hidecursor()">AltaVista</a><br /> <a href="http://www.yahoo.com" onmousemove="cursor('使用 Yahoo 进行搜索!')" onmouseout="hidecursor()">Yahoo!</a><br /> <span id="trail" style="visibility:hidden">Hello</span> </body> </html>