JS解决鼠标移动到微信图标上显示二维码

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>last.html</title>
<style>
</style>
<script type="text/javascript">
function show (obj)
{
var img = document.getElementById ("showimg");
if (img.src = obj.src)
{
img.src = "qrcode.jpg";
}
img.style.display = "";
img.style.position = "absolute";
img.style.left = obj.offsetleft + obj.width;
}
function hide ()
{
document.getElementById ("showimg").style.display = "none";
}
</script>
</head>
<body>
<img src="wechat.jpg" onmouseover="show(this)" onmouseout="hide()" width=18 height=18>
<br>
<img src="qrcode.jpg" id="showimg" style="display: none" height=88>
</body>
</html>

 

免费源码下载地址:http://github.crmeb.net/u/defu

JS解决鼠标移动到微信图标上显示二维码

上一篇:Linux基础——安装以及常用命令


下一篇:vue学习-08-数组检测和key