Discuz教程网

强制点击广告的代码

[复制链接]
authicon dly 发表于 2011-4-20 20:21:05 | 显示全部楼层 |阅读模式
  1. <html>
  2. <head>
  3. <title>强制点击广告的Js代码_网页代码站(www.942mv.com)</title>
  4. <script language="javascript">
  5. var num = 2;
  6. var mypage = 'http://www.942mv.com/';
  7. var pissoff = '请先点击上面的链接!';
  8. allow = Array();
  9. allow[num] = 2;
  10. function gotoit(link){
  11. if (link != num){
  12. allow[link] = 2;
  13. } else {
  14. for (i=1;i<=num;i++){
  15. if (allow[i] != 2){
  16. i = num + 1;
  17. lemmeIn = 0;
  18. } else {
  19. lemmeIn = 1;
  20. }
  21. }
  22. if (lemmeIn == 1){
  23. window.location = mypage;
  24. } else {
  25. alert(pissoff);
  26. }
  27. }
  28. }
  29. //--->
  30. </script>
  31. </head>
  32. <body>
  33. <a href="http://www.942mv.com/" target="_blank" onClick="gotoit(1)"><img src="http://www.webdm.cn/themes/pic/webdm_logo.gif" border="0" /></a><br><br><br><br>
  34. <a href="javascript:gotoit(num)">请先点击上面的链接</a>
  35. <br />
  36. <p><a href="http://www.942mv.com">网页代码站</a> - 最专业的网页代码下载网站 - 致力为中国站长提供有质量的网页代码!</p>
  37. </body>
  38. </html>
复制代码






上一篇:Discuz X1.5愤怒的小鸟 本地版GBK/UTF8
下一篇:Onez智能聊天系统
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 03:16

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表