HTML Dom Event对象onmouseOut事件

事件会在鼠标指针移出指定的对象时发生

支持该事件的 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>支持该事件的 JavaScript 对象:layer, link

例子:

<html><head> <script type="text/javascript"> //mouseOver 事件会在鼠标指针移动到指定的对象上时发生 function mouseOver() {document.getElementById("b1").innerHTML="欢迎进入博客"; } //mouseOut事件会在鼠标指针移出指定的对象时发生 function mouseOut() {document.getElementById("b1").innerHTML="鼠标挪过来试试"; } </script></head><body><a href="" onmouseover="mouseOver();" onmouseout="mouseOut();"><span id="b1">鼠标挪过来试试</span></a></body></html>

,读书须用意,一字值千金。

HTML Dom Event对象onmouseOut事件

相关文章:

你感兴趣的文章:

标签云: