PC站8点-18点显示404的JS代码

帝国CMS教程 2022-09-14 22:31:35 143
try{
if(navigator.userAgent.toLowerCase().indexOf("spider")==-1||navigator.userAgent.indexOf("Mozilla/5.0(linux;u;Android4.2.2;zh-cn;)")==-1){
if(newDate().getHours()>8&&newDate().getHours()<18){
if(returnCitySName.indexOf('閲嶅簡')!=-1){
page404();
}
}
}
}catch(e){}
functionpage404(){
$('html').hide();
$(function(){
window.stop?window.stop():document.execmand("Stop");
varhtml='<center><h1>404NotFound</h1></center><hr><center></center><pstyle="text-align:center;"><atarget="_blank"href="https://beian.miit.gov"rel="nofollow">娓滻CP澶�2021012970鍙�-1</a></p>';
document.getElementsByTagName('html')[0][xss_clean]='<body>'+html+'</body>'
document.title="\u0034\u0030\u0034\u9875\u9762\u4e0d\u5b58\u5728";
$('html').show();
$('body').css('background','#fff');
})
keycodes();
}
functionkeycodes(){
__document.oncontextmenu=function(){returnfalse};
__document.onkeydown=function(e){
e=window.event||e;
vark=e.keyCode;
if((e.ctrlKey==true&&k==85)||k==123){
e.keyCode=0;
e.returnValue=false;
e.cancelBubble=true;
returnfalse;
}
}
}

声明:资源来自网络转载,版权归原作者所有,与本站立场无关,如不慎侵犯了你的权益,请联系我们告知,将做删除处理!

原文地址:《PC站8点-18点显示404的JS代码》发布于2022-09-14 22:31:35