js实现二维码弹出

来源:互联网 发布:urllib post json 编辑:程序博客网 时间:2024/06/05 16:59
<html>
<head>
<title>LIGHTBOX EXAMPLE</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <script type="text/javascript">
function  showImg(){
document.getElementById("wxImg").style.display='block';
}
function hideImg(){
document.getElementById("wxImg").style.display='none';
}
</script>

</head>
<body>
    
   <div id="kalated-weixin">
 
    <a href="javascript:void(0)"  onmouseover="showImg()">
        <img class="wx" src="http://www.czqiushi.com/wp-content/uploads/2015/10/wx.png" onclick="hideImg()">
    </a>
 
</div>
    <div id="wxImg" style="display:none; right: 120px; top: 50px;back-ground:#f00;position:absolute; z-index:999;">
        <img class="wx" src="http://www.czqiushi.com/wp-content/uploads/2015/10/weixin.jpg">
    </div>
</body>  

</html>


css样式需要自己定义

0 0
原创粉丝点击