📄 jobcount.js
字号:
function GetTime()
{
now = new Date();
year=now.getYear();
Month=now.getMonth()+1;
Day=now.getDate();
Hour=now.getHours();
Minute=now.getMinutes();
Second=now.getSeconds();
return year+"-"+Month+"-"+Day+"-"+Hour+"-"+Minute+"-"+Second;
}
function _OurplusReadCookie(name)
{
var cookieValue = "";
var search = name + "=";
if(document.cookie.length > 0)
{
offset = document.cookie.indexOf(search);
if (offset != -1)
{
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
cookieValue = unescape(document.cookie.substring(offset, end))
}
}
return cookieValue;
}
function _OurplusWriteCookie(name, value, hours)
{
var expire = "";
if(hours != null)
{
expire = new Date((new Date()).getTime() + hours * 3600000);
expire = "; expires=" + expire.toGMTString();
}
document.cookie = name + "=" + escape(value) + expire + "domain=;" + "path=/;";
}
var _Debug=0;
var _a963count = 'http://office.a963.com/bbs';
var sid=13524;
var _Debug;
var _OurplusType;
var _OurplusShow;
var _OurplusShowStr='';
var _OurplusIframe;
var _a963countPage = _a963count + '/jobcount.php';
if( _OurplusIframe == true )
{
var _OurplusPageurl =escape(top.location.href);
var _OurplusReferer = escape(top.document.referrer);
}
else
{
var _OurplusPageurl = escape(top.location.href);
var _OurplusReferer = escape(top.document.referrer);
}
var _OurplusLanguage = (navigator.systemLanguage?navigator.systemLanguage:navigator.language);
var _OurplusColor = screen.colorDepth;
var _OurplusScreenSize = screen.width + '*' + screen.height;
var _OurplusCharset = document.charset
var _OurplusFirstTime;
var _OurplusLastTime;
_OurplusFirstTime = _OurplusReadCookie( '_OurplusFirstTime' );
if( _OurplusFirstTime == '' )
{
_OurplusFirstTime = GetTime();
_OurplusLastTime = _OurplusFirstTime;
_OurplusWriteCookie( '_OurplusFirstTime', _OurplusFirstTime, 10000 );
}
else
{
_OurplusLastTime = GetTime();
}
if( _OurplusType == null )
{
_OurplusType = 1;
}
_OurplusReturnCount = _OurplusReadCookie( '_OurplusReturnCount' );
_OurplusReturnCount = _OurplusReturnCount == '' ? 0 : _OurplusReturnCount;
_OurplusReturnTime = _OurplusReadCookie( '_OurplusReturnTime' );
if( _OurplusReturnTime == '' )
{
_OurplusReturnTime = GetTime();
_OurplusWriteCookie( '_OurplusReturnTime', _OurplusReturnTime, 10000 );
}
Temp = _OurplusReturnTime.split( '-' )
_OurplusReturnTimeDate = new Date(Temp[0], Temp[1]-1, Temp[2], Temp[3], Temp[4], Temp[5] );
_OurplusNowTimeDate = new Date();
if( _OurplusNowTimeDate - _OurplusReturnTimeDate >= 43200000 )
{
_OurplusWriteCookie( '_OurplusReturnCount', ++_OurplusReturnCount, 10000 );
_OurplusWriteCookie( '_OurplusReturnTime', GetTime(), 10000 );
}
else
{
_OurplusReturnCount = null;
}
if( _OurplusShow != null && _OurplusShow.length > 0 )
{
var _OurplusShowStr = '';
for( i = 0; i < _OurplusShow.length; i ++ )
{
_OurplusShowStr += "&show[]=" + _OurplusShow[i];
}
}
else
{
var _OurplusShowStr = "";
}
var _a963countUrl = _a963countPage + '?'
+'sid='+sid
+'&rows=1&cols=7&bdw=1&bdc=666666&sc=1&un=1&st=0'
+ '&counturl=' + _a963count
+ '&pageurl=' + _OurplusPageurl
+ '&referer=' + _OurplusReferer
+ '&language=' + _OurplusLanguage
+ '&color=' + _OurplusColor
+ '&screensize=' + _OurplusScreenSize
+ '&debug=' + _Debug
+ '&firsttime=' + _OurplusFirstTime
+ '&lasttime=' + _OurplusLastTime
+ '&type=' + _OurplusType
+ '&charset=' + _OurplusCharset
+ _OurplusShowStr
+ '&timezone=' + (new Date()).getTimezoneOffset()/60;
if( _OurplusReturnCount != null )
{
_a963countUrl += '&return1=' + _OurplusReturnCount;
}
if( _Debug )
{
document.write(_a963countUrl);
document.write("<iframe src='" + _a963countUrl + "' width=100% height=500></iframe>");
}
else
{
document.write("<script src='" + _a963countUrl + "'></script>");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -