var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var v_cntURL = "http://www.2sdq.com/manage/count/"; document.write(""); var v_curPage = location.href; var v_ref = escape(document.referrer); var v_ColorDepth = screen.colorDepth; var v_Language = (navigator.systemLanguage?navigator.systemLanguage:navigator.language); var v_ColorSize = screen.width + '_' + screen.height; /*--------------------读写Cookie-------------*/ function RW_readCookie(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 RW_writeCookie(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; } /*--------------------发送状态-------------*/ function vSend(sStr) { var sPass = false; try { var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); sPass = true;} catch(xmlhttp) { sPass = false; } if (sPass) { var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); xmlhttp.open("POST",v_cntURL+"counter.asp",false); // 发送更新请求 xmlhttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded"); xmlhttp.send(sStr); } else { document.images["v_cntImg"].alt = v_cntURL+"counter.asp?"+sStr; } } /*--------------------发送一次状态-------------*/ function SendOnce() { var addList=escape(location.href); var v_pageCount = parseInt(RW_readCookie("v_pageCount")); var SendStrings=""; v_pageCount++; RW_writeCookie("v_curPage",unescape(addList)); RW_writeCookie("v_pageCount",v_pageCount); if (v_pageCount<=1) { SendStrings="pct="+v_pageCount+"&p="+addList+"&r="+v_ref+ "&l="+v_Language+"&s="+v_ColorSize+"&d="+v_ColorDepth+"&t="+(new Date()).getTimezoneOffset()/60+ "&rdm="+(Math.random()*1000000); } else { SendStrings="pct="+v_pageCount+"&p="+addList+"&rdm="+(Math.random()*1000000); } vSend(SendStrings); if (window.name) { SendStrings = window.name;} else {SendStrings ="v_Win_"+Math.ceil((Math.random()*10000));window.name=SendStrings; } v_setWinNames(SendStrings,true); v_updateWinState(SendStrings); } /*--------------------刷新状态-------------*/ function RefreshState() { /* 检查该窗口是否刷新,是则向统计发送数据。 */ if (v_getWinState(window.name)=="REFRESH") { var v_pageCount = parseInt(RW_readCookie("v_pageCount")); var SendStrings="pct="+v_pageCount+"&rdm="+(Math.random()*1000000); vSend(SendStrings); v_setWinNames(window.name,true); } else /*--update--*/ { var sGetWinNames = RW_readCookie("v_winNames"); if (sGetWinNames.indexOf("[W]REFRESH")==-1) { v_setWinNames(window.name,true); } else { v_setWinNames(window.name,false); } } } /*--------------------设置窗口名称和刷新窗口状态-------------*/ function v_setWinNames(sName,cntWindow) { var sGetWinNames = RW_readCookie("v_winNames"); var sWinPlus = "[W]"+(new Date()).getTime().toString()+"[W]"; sWinPlus += (cntWindow) ?"REFRESH":"STOP"; var newWinNames = ""; if (sGetWinNames=="" || sGetWinNames=="NaN") { newWinNames = sName+sWinPlus; } else { if (sGetWinNames.indexOf("#")==-1) { if (sGetWinNames.indexOf(sName)!=-1) { newWinNames = sName+sWinPlus; } else { newWinNames = sGetWinNames+"#"+sName+sWinPlus; } } else { if (sGetWinNames.indexOf(sName)!=-1) { var nameCount,itmArray;itmArray = sGetWinNames.split("#");nameCount = itmArray.length; for (var i=0;i