var siteId = 21; var topid = 0; var imgSrc, staWeb; var cookieName_LogEmail,cookieName_Download,cookieName_Install,cookieName_Visite; var slid = $.cookie('Sta_Slid'); if (slid != null && slid != "") { cookieName_LogEmail='Sta_LogEmail_' + siteId + '_' + slid; if ($.cookie(cookieName_LogEmail) == null || $.cookie(cookieName_LogEmail) != "ok") { $.cookie(cookieName_LogEmail, 'ok'); imgSrc = "http://ta.qva.cc/sta.aspx?siteId=" + siteId + "&maillogtype=2&slid=" + slid; WriteImg(imgSrc); } } cookieName_Download='Sta_Download_' + siteId; cookieName_Install='Sta_Install_' + siteId; cookieName_Visite='Sta_Visite_' + siteId; var chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; function GenerateMixed(n) { var res = ""; for (var i = 0; i < n ; i++) { var id = Math.ceil(Math.random() * 35); res += chars[id]; } return res; } var mixed = GenerateMixed(6); var curLocation = window.location.href.toLowerCase(); staWeb = "http://ta.qva.cc/sta.aspx?siteId=" + siteId + "&topid=" + topid + "&mixed=" + mixed + "&referrer=" + escape(document.referrer) + "&vpage=" + escape(curLocation) + "&sh=" + window.screen.height + "&sw=" + window.screen.width + "&type="; WriteImg(staWeb + "0"); var isUnloadLog=true; window.onbeforeunload=function(){ if(isUnloadLog){ UnloadLog(); } } $(window).unload( function () { if(isUnloadLog){ UnloadLog(); } } ); function UnloadLog(){ isUnloadLog=false; var n = window.event.screenX - window.screenLeft; var b = n > document.documentElement.scrollWidth - 20; if (b && window.event.clientY < 0 || window.event.altKey) { WriteImg(staWeb + "-1"); } else { WriteImg(staWeb + "-2"); } } if (curLocation.indexOf("download.aspx") > 0) { if ($.cookie(cookieName_Download) == null || $.cookie(cookieName_Download) != "ok") { $.cookie(cookieName_Download, 'ok'); $.cookie(cookieName_Visite, 'ok'); imgSrc = staWeb + "2"; WriteImg(imgSrc); } } else if ($.query.get('install') == "y") { if ($.cookie(cookieName_Install) == null || $.cookie(cookieName_Install) != "ok") { $.cookie(cookieName_Install, 'ok'); $.cookie(cookieName_Visite, 'ok'); imgSrc = staWeb + "3"; WriteImg(imgSrc); } } else if ($.cookie(cookieName_Visite) == null || $.cookie(cookieName_Visite) != "ok") { $.cookie(cookieName_Visite, 'ok'); imgSrc = staWeb + "1&slid=" + slid; WriteImg(imgSrc); } //alert($.cookie(cookieName_Visite)); function WriteImg(imgurl) { var layer = document.createElement("div"); var txt = document.createElement("img"); txt.setAttribute("src", imgurl); layer.setAttribute("style", "height:0px;overflow:hidden;"); layer.appendChild(txt); if(document.body) document.body.appendChild(layer); else document.write(layer.outerHTML); } CheckUrlNeedRedirect(); function CheckUrlNeedRedirect() { if (curLocation.indexOf("www.ezshou.com") == -1){ return; } var spmStr = $.query.get('spm').toString(); if (spmStr == "1" || spmStr == "2") { location.href = "/about.html"; } return; } function ClickRecord(ctype,id){ if(!id) { id=0; } var clickImgSrc = "http://ta.qva.cc/sta.aspx?maillogtype=3&pageUrl=" + window.location.href.toLowerCase() + "&ctype=" + ctype + "&ctId=" + id + "&d=" + new Date().getTime(); WriteImg(clickImgSrc); } function SearchLog(keyword,userStr){ var searchImgSrc = "http://ta.qva.cc/sta.aspx?maillogtype=4&pageUrl=" + window.location.href.toLowerCase() + "&siteId=" + siteId + "&kw=" + keyword + "&us=" + userStr + "&d=" + new Date().getTime(); WriteImg(searchImgSrc); }