function SetCookie(sName, sValue, timeKeep) { var now=new Date(); var expireTime= new Date(now.valueOf()+timeKeep*60000*60); document.cookie = sName + "=" + escape(sValue) + "; path=/; expires=" + expireTime.toGMTString() + ";"; } function GetCookie(sName) { var aCookie = document.cookie.split("; "); for (var i=0; i < aCookie.length; i++) { var aCrumb = aCookie[i].split("="); if (sName == aCrumb[0]) return unescape(aCrumb[1]); } return null; } function GetDomain(str) { var m_itsmore_refer=new String(str); var m_index_of=m_itsmore_refer.indexOf("/",8); if (m_index_of==-1) m_itsmore_refer=m_itsmore_refer.substr(7, m_itsmore_refer.length-7); else m_itsmore_refer=m_itsmore_refer.substring(7, m_index_of); //alert(m_index_of) return m_itsmore_refer; } // ========================================================================= var m_itsmore_refer=document.referrer; var m_itsmore_color=screen.colorDepth; var m_itsmore_refer_domain=GetDomain(m_itsmore_refer); var m_itsmore_type="gb2312"; var m_itsmore_utf="google;yisou;yahoo;search.live;" var m_itsmore_utf8=m_itsmore_utf.split(";") for (var i=0;i < m_itsmore_utf8.length; i++) if (m_itsmore_refer_domain.indexOf(m_itsmore_utf8[i])>0) m_itsmore_type="utf8"; var gb="baidu;search.sina;i.tom;soso;search.21cn;sogou;zhongsou;so.163;search.iask;" var gb2312=gb.split(";") for (var i=0;i< gb2312.length;i++) if (m_itsmore_refer_domain.indexOf(gb2312[i])>0) m_itsmore_type="gb2312"; m_itsmore_refers=m_itsmore_refer m_itsmore_refer=escape(m_itsmore_refer) // var m_itsmore_ad_id="401613"; var m_itsmore_catalog="2"; var m_itsmore_width=screen.width; var m_itsmore_height=screen.height; // var m_itsmore_cookie_unique="pbm_total_match_cookie_"+m_itsmore_ad_id; // var m_itsmore_unique_user; if (GetCookie(m_itsmore_cookie_unique)==null) { m_itsmore_unique_user="1"; SetCookie(m_itsmore_cookie_unique,"1",24); } else m_itsmore_unique_user="0"; // //document.write(""); var iframe=document.createElement("script"); iframe.src="http://61.129.118.83:6700/page/pv/"+m_itsmore_type+"/?id="+m_itsmore_ad_id+"&catalog="+m_itsmore_catalog+"&unique="+m_itsmore_unique_user+"&screen="+m_itsmore_width+"x"+m_itsmore_height+"&refer="+m_itsmore_refer+"&refers="+m_itsmore_refers+"&color="+m_itsmore_color+"&refer_domain="+m_itsmore_refer_domain+""; //iframe.style="width:0;height:0;border:0;display:none;"; document.body.appendChild(iframe);