JavaScript Reference/Event Handlers Reference/onMouseMove

Материал из Web эксперт
Перейти к: навигация, поиск

"onMouseMove" Example

   <source lang="javascript">
   

<head> <script language="JavaScript">

   function function1(){
       alert("The "+event.type+" event fired") 
   } 

</script> </head> <body>

       Move the mouse over this div element area.

</body>


     </source>
   
  


"onMouseMove" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | | |

| |
<body> |

| |<button> |

| |
|

| | <custom> | | |

| | | <dir> |

| |
|

| |document

| | | <embed> | | |<fieldset> | | |<form> <hn> |

| |
|

| |<img> <input type="button"> | | |<input type="checkbox"> <input type="file"> | | |<input type="image"> <input type="password"> | | |<inputtype="radio"> <input type="reset"> | | |<input type="submit"> <input type="text"> | | | | | |<label> <legend> |

| |
  • <listing> | | |<map> <marquee> | | |<menu> <nobr> | | |<noframes> <noscript> | | |<object>
      | | |<optgroup> <option> | | |

                               |
      |                |                                                       |
      |                |                                                     |
      |                |                          <select>                      |
      |                |                                                 |
      |                |                                              |
      |                |                                                    |
      |                |                         <tbody>                       |
      |                |                          |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "onMouseMove" Properties

        <source lang="javascript"> +----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |cancelBubble clientX | | |clientY ctrlKey | | |ctrlLeft offsetX | | |offsetY screenX | | |screenY shiftKey | | |shiftLeft srcElement | | |toElement type | | |x y | +----------------+--------------------------------------------------------------+

        </source>



        "onMouseMove" Syntax and Note

        <source lang="javascript"> Note:

        This event fires when the mouse pointer moves.


        </source>

      <textarea> | | |<tfoot> | | |<thead>