Thuộc tính sự kiện onmousemove HTML
Thí dụ
Thực thi JavaScript khi di chuyển con trỏ chuột qua hình ảnh:
<img onmousemove="bigImg(this)" src="smiley.gif" alt="Smiley">
Định nghĩa và Cách sử dụng
Thuộc tính onmousemove kích hoạt khi con trỏ di chuyển trong khi nó ở trên một phần tử.
Hỗ trợ trình duyệt
Event Attribute | |||||
---|---|---|---|---|---|
onmousemove | Yes | Yes | Yes | Yes | Yes |
Cú pháp
<element onmousemove="script">
Giá trị thuộc tính
Value | Description |
---|---|
script | The script to be run on onmousemove |
Chi tiết kỹ thuật
Các thẻ HTML được hỗ trợ: | Tất cả các phần tử HTML, NGOẠI TRỪ: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style> và <title> |
---|
Các trang liên quan
Tham chiếu DOM HTML: sự kiện onmousemove
❮ Thuộc tính sự kiện HTML