事件会在鼠标指针移动时发生。
支持该事件的 HTML 标签:
<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>
例子:
下面的例子中,当用户把鼠标移动到图像上时,将显示一个对话框:
<html> <head> </head> <body> <p backgroud="red" onmousemove="alert('您的鼠标刚才经过了文字!')"> 鼠标从上面飘过去试试</p> </body> </html>
时间: 2024-10-13 22:22:26