assist_set_cookie.js
来自「一套开源WEB的网站管理系统」· JavaScript 代码 · 共 26 行
JS
26 行
function fSetHeight(){
try{
var height = 500;
if(document.all){
height = document.compatMode=="CSS1Compat" ? document.documentElement.scrollHeight:document.body.scrollHeight;
}else{
if(document.documentElement.scrollHeight - document.body.offsetHeight < 100){
height = document.documentElement.scrollHeight;
}else{
height = document.body.scrollHeight;
}
}
if(!height) height = 500;
// height += 20;
var h = ((typeof(outlink_height) == "undefined")?height:outlink_height);
// if(h < 500) h = 500;
var arr = location.hostname.split(".");
if(arr.length>1){
document.cookie = "oulink_h="+ h +";domain="+ arr[arr.length-2] + "." + arr[arr.length-1] +";path=/";
}
}catch(e){}
}
window.onload = fSetHeight;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?