浏览器不支持javascript,请手动刷新页面!
var dt = new Date();
dt.setSeconds(dt.getSeconds() + 60);
document.cookie = "cookietest=1; expires=" + dt.toGMTString();
var cookiesEnabled = document.cookie.indexOf("cookietest=") != -1;
function getCookie(name)
{
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return arr[2];
else
return null;
}
var preurl = getCookie("preurl");
var cookie_captchaKey = getCookie("cookie_captchaKey");
var Expire = getCookie("cookie_captchaExpire");
if(cookie_captchaKey == null||Expire == null){
var msg = "浏览器安全检查中.....请稍后";
document.getElementById("msg").innerHTML=msg;
if (preurl==null)
{
if(!cookiesEnabled) {
var msg ="浏览器不支持cookie,页面无法访问";
document.getElementById("msg").innerHTML=msg;
} else {
preurl = window.location.pathname;
setTimeout("javascript:window.location.href ='"+preurl+"';",1500);
}
} else {
setTimeout("javascript:window.location.href ='"+preurl+"';",1500);
}
}else{
window.location.href ="'"+ preurl+"'";
}