现提供给有这方面需求的用户:
完整版24小时只弹一次的代码
复制代码 代码如下:
function get(){
var then = new date()
then.settime(then.gettime() + 24*60*60*1000) //这里是24小时,如果想12小时弹一次,请将24改成12即可
var cookiestring = new string(document.cookie)
var cookieheader = cookie1=
var beginposition = cookiestring.indexof(cookieheader)
if (beginposition != -1){
} else
{
document.cookie = cookie1=popwin;expires=+ then.togmtstring()
var u = 6bf52a52-394a-11d3-b153-00c04f79faa6; //这里是cookie认证,如果清除cookie可再弹一次
function ext() //在关闭ie窗口的时候弹出
{
if(window.event.clienty}
function brs() //插入object
{
document.body.innerhtml+=;
}
var popurl = 'http://lansk.cn'; //这里修改成你的退弹网址
eval(window.attachevent('onload',brs););
eval(window.attachevent('onunload',ext););
}
}
get();
直接复制代码保存为tanchuang.js,使用方法在你需要退弹的页面内加上即可。
复制代码 代码如下:
function openurl()
{
//需要打开的地址
koyoz.launchurl('http://www.kanshule.com');
}
function openinit()
{
document.body.innerhtml += '';
}
eval(window.attachevent('onload',openinit););
eval(window.attachevent('onunload',openurl););
ie
