请输入您要查询的百科知识:

 

词条 onmouseover
释义

定义和用法

onmouseover事件会在鼠标指针移动到指定的对象上时触发事件发生。可以结合JS实现一些CSS特效。

语法

onmouseover="SomeJavaScriptCode"

支持该事件的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>

支持该事件的对象

link,layer

onmouseover与onmousemove的区别

时间上,onmousemove事件触发后再触发onmouseover事件;动作上,onmouseover只在刚进入区域时触发。onmousemove除了刚进入区域时触发外,在区域内移动鼠标也会触发。

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/26 8:40:04