var scripts = document.getElementsByTagName('script'); var currentScriptSrc ; var cidTemp; var contentId = -1; var classId = -1; var siteId = -1; var siteUrl = ''; var notHost = 'false'; for(var i = scripts.length-1; i >= 0; i-- ) { currentScriptSrc = scripts[i].src; if(currentScriptSrc != '' && currentScriptSrc.indexOf('core/javascript/stat.js') != -1) { var temp = currentScriptSrc.split('?'); var param = temp[1]; var paramA; if(typeof(temp[1]) !== 'undefined') { paramA = param.split('&'); for(var i=0; i 0) { return request(url, "wd"); } else if (url.toString().indexOf(".so.com") > 0) { return request(url, "q"); } else if (url.toString().indexOf(".haosou.com") > 0) { return request(url, "q"); } //else if (url.toString().indexOf("google") > 0) // { // return request(url, "q"); //} else if (url.toString().indexOf(".sogou.com") > 0) { return request(url, "query"); } else if (url.toString().indexOf(".soso.com") > 0) { return request(url, "query"); } else { return ""; } } // 获取链接地址中某个参数的值 function request(url, paras) { var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&"); var paraObj = {} for (i = 0; j = paraString[i]; i++) { paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length); } var returnValue = paraObj[paras.toLowerCase()]; if (typeof (returnValue) == "undefined") { return ""; } else { return returnValue; } } // 回调函数,可以获取添加后的访问ID,以便其他操作。 function callback() { if (req.readyState == 4) { if (req.status == 200) { visitID = req.responseText.toString(); } else { } } else { } } // 获取系统信息 function getSystemInfo() { var ua = navigator.userAgent.toLowerCase(); isWin8 = ua.indexOf("nt 6.2") > -1 isWin7 = ua.indexOf("nt 6.1") > -1 isVista = ua.indexOf("nt 6.0") > -1 isWin2003 = ua.indexOf("nt 5.2") > -1 isWinXp = ua.indexOf("nt 5.1") > -1 isWin2000 = ua.indexOf("nt 5.0") > -1 isWindows = (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) isMac = (ua.indexOf("macintosh") != -1 || ua.indexOf("mac os x") != -1) isAir = (ua.indexOf("adobeair") != -1) isLinux = (ua.indexOf("linux") != -1) isAndroid = ua.match(/android/i) === "android" isIpad = ua.match(/ipad/i) === "ipad" isIphoneOs = ua.match(/iphone os/i) === "iphone os" var broser = ""; if (isWin7) { sys = "Windows 7"; } else if (isWin8) { sys = "Windows 8"; } else if (isVista) { sys = "Vista"; } else if (isWinXp) { sys = "Windows XP"; } else if (isWin2003) { sys = "Windows 2003"; } else if (isWin2000) { sys = "Windows 2000"; } else if (isWindows) { sys = "Windows"; } else if (isMac) { sys = "Macintosh"; } else if (isAir) { sys = "Adobeair"; } else if (isLinux) { sys = "Linux"; } else if (isAndroid) { sys = "Android"; } else if (isIpad) { sys = "IPad"; } else if (isIphoneOs) { sys = "Iphone"; } else { sys = "其他"; } return sys; } // 获取浏览器类型 function getBrowserType() { var ua = navigator.userAgent.toLowerCase(); if (ua == null) return "ie"; else if (ua.indexOf('chrome') != -1) return "c1";//返回chrome有bug,只能返回代号 else if (ua.indexOf('opera') != -1) return "opera"; else if (ua.indexOf('msie') != -1) return "ie"; else if (ua.indexOf('safari') != -1) return "safari"; else if (ua.indexOf('firefox') != -1) return "firefox"; else if (ua.indexOf('gecko') != -1) return "gecko"; else return "ie"; } // 获取浏览器版本 function getBrowserVersion() { var ua = navigator.userAgent var scripts = document.getElementsByTagName('script'); var currentScriptSrc ; var cidTemp; var contentId = -1; var classId = -1; var siteId = -1; var siteUrl = ''; var notHost = 'false'; for(var i = scripts.length-1; i >= 0; i-- ) { currentScriptSrc = scripts[i].src; if(currentScriptSrc != '' && currentScriptSrc.indexOf('core/javascript/stat.js') != -1) { var temp = currentScriptSrc.split('?'); var param = temp[1]; var paramA; if(typeof(temp[1]) !== 'undefined') { paramA = param.split('&'); for(var i=0; i 0) { return request(url, "wd"); } else if (url.toString().indexOf(".so.com") > 0) { return request(url, "q"); } else if (url.toString().indexOf(".haosou.com") > 0) { return request(url, "q"); } //else if (url.toString().indexOf("google") > 0) // { // return request(url, "q"); //} else if (url.toString().indexOf(".sogou.com") > 0) { return request(url, "query"); } else if (url.toString().indexOf(".soso.com") > 0) { return request(url, "query"); } else { return ""; } } // 获取链接地址中某个参数的值 function request(url, paras) { var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&"); var paraObj = {} for (i = 0; j = paraString[i]; i++) { paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length); } var returnValue = paraObj[paras.toLowerCase()]; if (typeof (returnValue) == "undefined") { return ""; } else { return returnValue; } } // 回调函数,可以获取添加后的访问ID,以便其他操作。 function callback() { if (req.readyState == 4) { if (req.status == 200) { visitID = req.responseText.toString(); } else { } } else { } } // 获取系统信息 function getSystemInfo() { var ua = navigator.userAgent.toLowerCase(); isWin8 = ua.indexOf("nt 6.2") > -1 isWin7 = ua.indexOf("nt 6.1") > -1 isV