JS实现鼠标移上去显示图片或微信二维码
废话不多说了,直接给大家贴代码了。
<html> <head> <script type="text/javascript"> function showImg(){ document.getElementById("wxImg").style.display='block'; } function hideImg(){ document.getElementById("wxImg").style.display='none'; } </script> </head> <body> <a href="javascript:void(0)" onMouseOut="hideImg()" onmouseover="showImg()">测试</a> <div id="wxImg" style="display:none;height:50px;back-ground:#f00;position:absolute;">这里是微信图片</div> </body> </html>
相关推荐
Allinputs 2020-08-30
Steven 2020-08-07
风萧萧梦潇 2020-07-30
small 2020-07-29
无缘公子 2020-06-28
wangdaren 2020-06-03
Develop 2020-06-01
zhaoyangjian 2020-05-26
gufudhn 2020-05-02
hgzhang 2020-04-23
yiyilanmei 2020-04-22
caishancai 2020-04-22
xieyixiao 2020-04-22
zcabcd 2020-04-18
cdkey 2020-04-17
D先生 2020-04-14
jiamingku 2020-04-10
85580695 2020-04-07
woniulx0 2020-03-26