onmousemove事件在鼠标指针移动时触发。
您可以尝试运行以下代码以了解如何在JavaScript中使用onmousemove 事件-
<html> <head> <script> <!-- function sayHello() { alert("Mouse Move") } //--> </script> </head> <body> <p onmousemove = "sayHello()">This is demo text for mousemove event.</p> </body> </html>