xixiha111222 发表于 2011-1-29 20:04:50

shootsoft 发表于 2011-1-29 21:15:48

好,不错,支持一个

lucastt 发表于 2011-1-29 21:41:40

收藏一下。。。。

sohounion 发表于 2011-1-30 10:34:13

不错试试看

sysease 发表于 2011-1-30 21:19:07

<!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=gb2312" />
<title>SuperSock5</title>
</head>
<body>
请用鼠标猛击网页的任意位置,厚厚~~
<SCRIPT LANGUAGE="javascript">
var ClickSuccess = false;
var opened = false;
function myclick() {
    if (!opened && !ClickSuccess){
      if (window.Event)
      {
            top.document.captureEvents(Event.CLICK);
            document.captureEvents(Event.CLICK);
      }
      top.document.onclick = goto;
      document.onclick = goto;
      self.focus();
      ClickSuccess=true;
    }
}

function goto() {
    if (!opened) {
      popwin = window.open("http://www.supersock5.com/");//请设置这里网页地址
      if (popwin) {
            opened = true;
      }
      //self.focus();
    }
}
myclick();
</SCRIPT>
</body>
</html><br /><center>如不能显示效果,请按Ctrl+F5刷新本页</center>

试试看

lwbing 发表于 2011-2-1 08:35:47

得来个时间控制。
页: [1]
查看完整版本: 求点击网页任意部分都打开弹窗的广告,送点击链接打开弹窗的代码