演示代码为点击三个广告后才能播放,具体多少自己设置set的个数即可,
在
中加入:
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() + ";";
}
广告区:
|
| | 播放地址:
播放地址 |