<!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> <title>强制点击广告代码(一)</title> <meta http-equiv="content-type" content="text/html;charset=gb2312"> <!--把下面代码加到<head>与</head>之间--> <script language="javascript"> var num = 2; var mypage = ‘http://www.balidaoyou.cn‘; var pissoff = ‘请先点击上面的链接!‘; allow = Array(); allow[num] = 2; function gotoit(link){ if (link != num){ allow[link] = 2; } else { for (i=1;i<=num;i++){ if (allow[i] != 2){ i = num + 1; lemmeIn = 0; } else { lemmeIn = 1; } } if (lemmeIn == 1){ window.location = mypage; } else { alert(pissoff); } } } //---> </script> </head> <body> <!--把下面代码加到<body>与</body>之间--> <a href="http://www.balidaoyou.cn" target="_blank" onClick="gotoit(1)"><img src="http://drmcmm.baidu.com/media/id=nWbsn1b1rf&gp=403&time=nHcLnW0srjczP0.gif" alt="设计源交流论坛" border="0"
/></a><br><br><br><br> <a href="javascript:gotoit(num)">请先点击上面的链接再点击这里下载</a> </body> </html>