博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
鼠标移动到图片上切换到另一张图片,移出时又切回来
阅读量:7237 次
发布时间:2019-06-29

本文共 441 字,大约阅读时间需要 1 分钟。

HTML写法:

JS写法:

var img=document.createElement("img");    img.setAttribute("src","pages/annottor/claim/img/trash.png");    img.setAttribute("onclick","removeOneWorkitemLine(this);");    img.setAttribute("onmouseover","this.src=\"pages/annottor/claim/img/trash2.png\";");    img.setAttribute("onmouseout","this.src=\"pages/annottor/claim/img/trash.png\";");

 

本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/xiandedanteng/p/5667821.html,如需转载请自行联系原作者

你可能感兴趣的文章
加密PDF为只读模式
查看>>
让你编写的控件库在 XAML 中有一个统一的漂亮的命名空间(xmlns)和命名空间前缀...
查看>>
MySQL数据库的锁详解【转】
查看>>
ip route 解释
查看>>
【转】Android中保持Service的存活
查看>>
Consul功能简介
查看>>
IdentityServer4实战 - API与IdentityServer的交互过程解析
查看>>
Delphi编程 -- 使用CPUID指令获取CPU信息(转自大富翁)
查看>>
Android setRequestedOrientation用法
查看>>
面向对象三大基本特性,五大基本原则
查看>>
更改窗口图标并将其显示在任务栏
查看>>
包含的语句
查看>>
正则表达式-匹配标点符号
查看>>
osworkflow descriptor 解析 重要概念
查看>>
Edmonds_Karp 算法 (转)
查看>>
第一节 接口概述 [转贴]
查看>>
C# Attribute 用法备忘
查看>>
数据结构学习笔记(5.线性表之双向循环链表)
查看>>
智能家居趋势
查看>>
[Leetcode] Pow(x, n)
查看>>