欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

onmousemove 事件

定義和用法

onmousemove 事件會(huì)在鼠標(biāo)指針移動(dòng)時(shí)發(fā)生。

語(yǔ)法

onmousemove="SomeJavaScriptCode"
參數(shù) 描述
SomeJavaScriptCode 必需。規(guī)定該事件發(fā)生時(shí)執(zhí)行的 JavaScript。

支持該事件的 HTML 標(biāo)簽:

<a>, <address>, <area>, <b>, <bdo>, <big>, <blockquote>, <body>, <button>, 
<caption>, <cite>, <code>, <dd>, <dfn>, <div>, <dl>, <dt>, <em>, <fieldset>, 
<form>, <h1> to <h6>, <hr>, <i>, <img>, <input>, <kbd>, <label>, <legend>, 
<li>, <map>, <ol>, <p>, <pre>, <samp>, <select>, <small>, <span>, <strong>, 
<sub>, <sup>, <table>, <tbody>, <td>, <textarea>, <tfoot>, <th>, <thead>, 
<tr>, <tt>, <ul>, <var>

支持該事件的 JavaScript 對(duì)象:

onmousemove is, by default, not an event of any object, 
because mouse movement happens very frequently.

提示和注釋

注釋:每當(dāng)用戶把鼠標(biāo)移動(dòng)一個(gè)像素,就會(huì)發(fā)生一個(gè) mousemove 事件。這會(huì)耗費(fèi)系統(tǒng)資源去處理所有這些 mousemove 事件。因此請(qǐng)審慎地使用該事件。

實(shí)例

下面的例子中,當(dāng)用戶把鼠標(biāo)移動(dòng)到圖像上時(shí),將顯示一個(gè)對(duì)話框:

<img src="/i/eg_mouse2.jpg" alt="mouse"
onmousemove="alert('您的鼠標(biāo)剛才經(jīng)過了圖片!')" />

輸出(請(qǐng)把鼠標(biāo)放到圖片上):

TIY

onmousemove
如何使用 onmousemove。