QQ弹窗代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>贵阳中康皮肤病医院QQ咨询</title>
</head>
<body>
<script charset="utf-8" src="http://wpa.b.qq.com/cgi/wpa.php"></script>
<div id="BizQQWPA">正在链接,请稍等...(若无启动,请点击此处)</div>
<script type="text/javascript">
BizQQWPA.addCustom({aty: '0', a: '0', nameAccount: 800121319, selector: 'BizQQWPA'});
</script>
<script type="text/javascript">
setTimeout(function() {
          if(document.all) {document.getElementById("BizQQWPA").click();
          closewin();
        }else {
        var e = document.createEvent("MouseEvents");
        e.initEvent("click", true, true);
        document.getElementById("BizQQWPA").dispatchEvent(e);
        closewin();
        }}, 1000);

function closewin(){
  setTimeout(function(){ //IE6、7不会提示关闭
      self.location.href=document.referrer;
    }, 5000);
 }

</script>

</body>
</html>

上一篇:FlowNet2.0 安装指南


下一篇:20169210《Linux内核原理与分析》第六周作业