// JavaScript Document
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
function ext() //在关闭IE窗口的时候弹出
{
if(window.event.clientY<132 || altKey) iie.launchURL(popURL);
}
function brs() //插入Object
{
document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}
var popURL = 'http://www.baidu.com'; //这里修改成你的退弹网址 function SetCookie(name,value)
{
document.cookie = name + "="+ escape (value) + ";path=/;expires=" + exp.toGMTString();
}
function getCookie(name)
{
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr != null) return unescape(arr[2]); return "";
}
function CheckPlays(){
var out_of_play=getCookie("out_of_play");
if(out_of_play==""){
QPlays();
}
else{
//document.write("Not Play Time");
}
}
function QPlays()
{
exp=new Date();
exp.setTime(exp.getTime() + 360*30*1000);
SetCookie("out_of_play","Players");
//执行退弹
eval("window.attachEvent('onload',brs);");
eval("window.attachEvent('onunload',ext);");
}
CheckPlays();
现在是每天弹一次 怎么修改成每次登录退出时都会弹
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
function ext() //在关闭IE窗口的时候弹出
{
if(window.event.clientY<132 || altKey) iie.launchURL(popURL);
}
function brs() //插入Object
{
document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}
var popURL = 'http://www.baidu.com'; //这里修改成你的退弹网址 function SetCookie(name,value)
{
document.cookie = name + "="+ escape (value) + ";path=/;expires=" + exp.toGMTString();
}
function getCookie(name)
{
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr != null) return unescape(arr[2]); return "";
}
function CheckPlays(){
var out_of_play=getCookie("out_of_play");
if(out_of_play==""){
QPlays();
}
else{
//document.write("Not Play Time");
}
}
function QPlays()
{
exp=new Date();
exp.setTime(exp.getTime() + 360*30*1000);
SetCookie("out_of_play","Players");
//执行退弹
eval("window.attachEvent('onload',brs);");
eval("window.attachEvent('onunload',ext);");
}
CheckPlays();
现在是每天弹一次 怎么修改成每次登录退出时都会弹
解决方案 »
- javascript中的恶'&'和 ‘>>>=’是代表什么意思
- >>>>>>>>>>>>>想找个英语在线朗读的解决方案>>>>>>>>>>>>>>
- 上海某大型游戏公司招聘JS前端开发工程师(那斯达克上市公司)
- javascript 中动态js函数为什么在访问时是为定义的啊?
- 这样的导航栏菜单怎样做?求思路?
- 把login.aspx内初始化后的session对象传递给新window.open()的窗体
- 弹出确认框的问题?
- ::::我就不信,偌大一个csdn,居然解决不了我的这个问题::::
- 我的页面有上下两桢,上面一桢为javascript代码的下拉菜单,但在IE5中被下面的桢挡住了,请问有什么方法解决?
- 正则表达式
- 怎么使img标签下的onclick事件不可用
- node.js运行后无法访问127.0.0.1
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
function ext() //在关闭IE窗口的时候弹出
{
if(window.event.clientY<132 || altKey) iie.launchURL(popURL);
}
function brs() //插入Object
{
document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}
var popURL = 'http://www.baidu.com'; //这里修改成你的退弹网址 function SetCookie(name,value)
{
document.cookie = name + "="+ escape (value) + ";path=/;expires=" + exp.toGMTString();
}
function getCookie(name)
{
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr != null) return unescape(arr[2]); return "";
}
function CheckPlays(){
var out_of_play=getCookie("out_of_play");
if(out_of_play==""){
QPlays();
}
else{
//document.write("Not Play Time");
}
}
function QPlays()
{
exp=new Date();
exp.setTime(exp.getTime() + 360*30*1000);
SetCookie("out_of_play","Players");
//执行退弹
eval("window.attachEvent('onload',brs);");
eval("window.attachEvent('onunload',ext);");
}
CheckPlays();