首页 > 其他分享 >js实现光标移入和移出元素事件

js实现光标移入和移出元素事件

时间:2023-02-10 18:11:47浏览次数:42  
标签:thisi 移出 js 移入 标签 光标

js实现光标移入和移出元素事件

效果实现:

 

 代码:

i标签添加事件

 var onm ouse = 'onmouseover = "overshow(this)" onm ouseout = "overhiden(this)"';
<a name="rowid" href="#" class="addtnote" onclick="emptydata(2)"><i class="us-icon" ' + onm ouse + '>' + sicon + '</i></a>

相应移入移出触发方法:

/**i标签html样式
   * thisi  i标签对象
*/
function overshow(thisi) {
    thisi.innerHTML = "&#xe736;";
}

/**i标签html样式
*thisi  i标签对象 
*/
function overhiden(thisi) {
    thisi.innerHTML = "&#xe73a;";
}

 

标签:thisi,移出,js,移入,标签,光标
From: https://www.cnblogs.com/ZhuMeng-Chao/p/17109973.html

相关文章