点击多个广告后才显示播放页面的代码(适用于电影、下载)
[color=blue]演示代码为点击三个广告后才能播放,具体多少自己设置set的个数即可,在
中加入:[/color]if (offset1 == -1 || offset2 == -1 || offset3 == -1)
{
window.alert("请先先按左边的提示操作一遍就可以看一天电影了,谢谢!");
}
else
{
var paramet = 'toolbar=no,resizable=no,scrollbars=yes,width='+ widths + ',height=' + heights;
newWindow = window.open(htmurl,"yule21",paramet);
newWindow.focus();
}
}
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]
版权声明:
作者:Jays
链接:https://ijays.com/2005/12/%e7%82%b9%e5%87%bb%e5%a4%9a%e4%b8%aa%e5%b9%bf%e5%91%8a%e5%90%8e%e6%89%8d%e6%98%be%e7%a4%ba%e6%92%ad%e6%94%be%e9%a1%b5%e9%9d%a2%e7%9a%84%e4%bb%a3%e7%a0%81%ef%bc%88%e9%80%82%e7%94%a8%e4%ba%8e%e7%94%b5.html
来源:颓废的美
文章版权归作者所有,未经允许请勿转载。
共有 0 条评论