首页 > 微信 > 详细

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

时间:2021-04-07 15:07:51      阅读:37      评论:0      收藏:0      [点我收藏+]

<!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解决鼠标移动到微信图标上显示二维码

原文:https://www.cnblogs.com/baisou/p/14626936.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!