也许颓废也是 ... 另一种美
一个学习了N年还是小白的网络爱好者 ...

点击多个广告后才显示播放页面的代码(适用于电影、下载)

[color=blue]演示代码为点击三个广告后才能播放,具体多少自己设置set的个数即可,在中加入:[/color]

setcookie.js文件内容为:

function set1() {
    var expireDate = new Date();
    var hours = expireDate.getHours();
    var minutes = expireDate.getMinutes();
    var seconds = expireDate.getSeconds();
    var lefttime = 1000 * 600;
    expireDate.setTime (expireDate.getTime() + lefttime);
    document.cookie = “005681=yes” + “; expires=” + expireDate.toGMTString() +  “;”;
}
function set2() {
    var expireDate = new Date();
    var hours = expireDate.getHours();
    var minutes = expireDate.getMinutes();
    var seconds = expireDate.getSeconds();
    var lefttime = 1000 * 600;
    expireDate.setTime (expireDate.getTime() + lefttime);
   document.cookie = “005682=yes” + “; expires=” + expireDate.toGMTString() +  “;”;
}

function set3() {
    var expireDate = new Date();
    var hours = expireDate.getHours();
    var minutes = expireDate.getMinutes();
    var seconds = expireDate.getSeconds();
    var lefttime = 1000 * 600;
    expireDate.setTime (expireDate.getTime() + lefttime);
    document.cookie = “005683=yes” + “; expires=” + expireDate.toGMTString() +  “;”;
}

广告区:

       

      

       

播放地址:

 

播放地址

PS: [color=red]这种方法很是遭网友反感,这里仅供参考,三思而后用![/color]

未经允许不得转载:颓废的美 » 点击多个广告后才显示播放页面的代码(适用于电影、下载)
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址