1var _ivyIDs=window._ivyIDs||""; 2var _tmpIvyIDs=window._tmpIvyIDs||""; 3var _cntUrl=window._cntUrl||""; 4var _state_=0; 5var _count_=1; 6var __lock__ =0; 7var _ivySubmitPage="//ivy.pconline.com.cn/show2?channel=inline&id="; 8function _addIvyID(para_loc_ad){ 9 if(_tmpIvyIDs.indexOf(para_loc_ad+";")>-1){ 10 return; 11 } 12 13 _tmpIvyIDs = _tmpIvyIDs + para_loc_ad + ";"; 14 _ivyIDs = _ivyIDs + para_loc_ad + ";"; 15} 16function _delIvyID(para_loc_ad){ 17 if(para_loc_ad != null && para_loc_ad.length>0 && para_loc_ad.indexOf("_")>0){ 18 if(_tmpIvyIDs.indexOf(para_loc_ad+";")>-1){ 19 _tmpIvyIDs = _tmpIvyIDs.replace(para_loc_ad+";", ""); 20 } 21 if(_ivyIDs.indexOf(para_loc_ad+";")>-1){ 22 _ivyIDs = _ivyIDs.replace(para_loc_ad+";", ""); 23 } 24 } 25} 26function _submitIvyID_impl(){ 27 __lock__ = 1; 28 if (_ivyIDs && _ivyIDs != ""){ 29 var _ivyIDssend = _ivyIDs; 30 _ivyIDs = ""; 31 try{ 32 var i2 = document.createElement("script"); 33 if(i2){ 34 var ivydiv = document.getElementById("ivy_div"); 35 if(!ivydiv){ 36 //var bodys = document.getElementsByTagName("body"); 37 //ivydiv = bodys[0]; 38 ivydiv = document.createElement("div"); 39 ivydiv.id= "ivy_div"; 40 ivydiv.style.display = "none"; 41 //2009.2.25...apply insertBefore for better compatiable 42 //document.body.appendChild(ivydiv); 43 document.body.insertBefore(ivydiv, document.body.firstChild); 44 } 45 46 if (!ivydiv){ 47 try{ 48 var i2 = new Image(1,1); 49 i2.src = _ivySubmitPage + _ivyIDssend; 50 i2.onload=function() { _uVoid(); }; 51 }catch(err0){_addIvyID(_ivyIDssend);} 52 }else{ 53 //2009.2.25...apply insertBefore for better compatiable 54 //ivydiv.appendChild(i2); 55 document.body.insertBefore(i2, document.body.firstChild); 56 var page = _ivySubmitPage + _ivyIDssend + "&state=" + _state_ + "&submitcnt=" + _count_; 57 i2.src = page; 58 } 59 } 60 }catch(err){ 61 try{ 62 var i2 = new Image(1,1); 63 i2.src = _ivySubmitPage + _ivyIDssend; 64 i2.onload=function() { _uVoid(); }; 65 }catch(err1){ 66 _addIvyID(_ivyIDssend); 67 } 68 } 69 } 70 if (_cntUrl && _cntUrl != ""){ 71 var i3 = new Image(1,1); 72 i3.src = _cntUrl; 73 i3.onload=function() { _uVoid(); }; 74 _cntUrl =""; 75 } 76 __lock__ = 0; 77} 78function _uVoid() { return; } 79function _ivyRandom(size){ 80 try{ 81 hi_now = new Date(); 82 hi_id= hi_now.getSeconds() % size; 83 return hi_id; 84 }catch(err) { 85 return 0; 86 } 87} 88_submitIvyID=function(){ //ÕâÀïÌØÒ⽫_submitIvyID()´®·Ö¿ª£¬·ÀÖ¹²É±àÄÚǶʱ±»²åÈë_addIvyID(...)´® 89 if(__lock__!=0){ 90 window.setTimeout(_submitIvyID,3000); 91 return; 92 } 93 _state_ = 0; 94 _count_ = 1; 95 _submitIvyID_impl(); 96}; 97 98function _submitIvyID2(){ 99 if(__lock__!=0){ 100 window.setTimeout(_submitIvyID2,3000); 101 return; 102 } 103 _state_ = 1; 104 _count_ = 1; 105 106 var needDelay= _ivyIDs&&_ivyIDs!=""; 107 if(needDelay) _addIvyID("480946_302688"); //ÓÃÓÚͳ¼ÆÎ´¼ÓÔØÍêÒ³Ãæ¾ÍÌø³öµÄ´ÎÊý 108 _submitIvyID_impl(); 109 if(needDelay) { var d=new Date(); while(new Date()-d<100){} } //ÑÓʱ100ºÁÃëÒÔ±£Ö¤ÇëÇó·¢³ö£¬²»»áAbort 110} 111function _submitIvyID3(){ 112 if(__lock__!=0){ 113 window.setTimeout(_submitIvyID3,3000); 114 return; 115 } 116 _state_ = 0; 117 _count_ = 2; 118 _submitIvyID_impl(); 119} 120window.onbeforeunload = _submitIvyID2; 121 122var userAgent = navigator.userAgent.toLowerCase(); 123 124if(/msie/.test(userAgent) && !/opera/.test(userAgent)){ 125 document.onreadystatechange = function(){ 126 if (document.readyState == "complete"){ 127 _submitIvyID3(); 128 } 129 }; 130}else if(/opera/.test(userAgent) ||/mozilla/.test(userAgent)){ 131 document.addEventListener( "DOMContentLoaded", _submitIvyID3 , false ); 132} 133 134function document_write(s) { document.write(s); } 135function document_writeln(s) { document.writeln(s); } 136 137//add for show3 138var _IVY_AD_MAP_ = new Array(); 139function struct_IVY_AD_MAP(key, value){ 140 141 this.key = key; 142 this.value = value; 143 144} 145 146function setLocationAd(key, value){ 147 148 for (var i = 0; i < this._IVY_AD_MAP_.length; i++) 149 { 150 if ( this._IVY_AD_MAP_[i].key === key ) 151 { 152 this._IVY_AD_MAP_[i].value = value; 153 return; 154 } 155 } 156 157 this._IVY_AD_MAP_[this._IVY_AD_MAP_.length] = new struct_IVY_AD_MAP(key, value); 158 159} 160 161function getLocationAd(key,pex) 162{ 163 var tmp = new Array(); 164 var obj = new Array(); 165 for (var i = 0; i < this._IVY_AD_MAP_.length; i++) 166 { 167 if ( this._IVY_AD_MAP_[i].key === key ) 168 { 169 tmp = this._IVY_AD_MAP_[i].value; 170 break; 171 } 172 } 173 if(tmp != null && tmp.length>0){ 174 var level = tmp[0].level; 175 for(var i=0;i<tmp.length;i++){ 176 if(pex != null && pex>0){ 177 if(pex>obj.length){ 178 obj[obj.length] = tmp[i]; 179 if(tmp[i].level>=2) _addIvyID(tmp[i].locationId + "_" + tmp[i].adId); 180 } 181 }else{ 182 if(level>tmp[i].level)break; 183 obj[obj.length] = tmp[i]; 184 if(tmp[i].level>=2) _addIvyID(tmp[i].locationId + "_" + tmp[i].adId); 185 if(level<2)break; 186 } 187 } 188 } 189 return obj;
190} 191 192ivymap = window.ivymap || {}; //·ÀÖØÔØÐ´·¨£¬ÓÃÓÚshow4ºÏ²¢·½Ê½ 193function showIvyViaJs(locationId) { 194 var _f = undefined; 195 var _fconv = 'ivymap[\"'+locationId+'\"]'; 196 try { 197 _f = eval(_fconv); 198 if (_f!=undefined) { 199 _f(); 200 } 201 } catch(e) { 202 } 203} 204 205/** ¹Ø¼ü×Ö¹ã¸æ±£´æµÄÊý×éÁбíºÍ»Øµ÷º¯Êý add by yjx **/ 206//¹Ø¼ü×Ö¹ã¸æÁбí 207var ivyAdList = new Array(); 208//¹Ø¼ü×Ö¹ã¸æÄÚÈÝ£¬key-¹Ø¼ü×Ö£¬content-¹ã¸æÄÚÈÝ£¬href-µã»÷Á´½Ó£¬ivyPara-¼ÆÊý²ÎÊý£¬showCount-¹Ø¼ü×ÖÏÔʾ´ÎÊý£¬linkCss-Á´½ÓÑùʽ 209function IvyKeyword(key, content, href, ivyPara, showCount, linkCss){ 210 this.key = key; 211 this.content = content; 212 this.href = href; 213 this.ivyPara = ivyPara; 214 this.showCount = showCount; 215 this.tmpCount = 0; 216 this.linkCss = linkCss; 217} 218 219//Ìṩ¸ø³ÌÐòµÄ»Øµ÷JSº¯Êý 220function showKeyWorkAd(keys, content, href, ivyPara, showCount, linkCss){ 221 var keyArray=keys.split("|||"); 222 //alert(keyArray) 223 for(var aa=0;aa<keyArray.length;aa++) { 224 ivyAdList[ivyAdList.length] = new IvyKeyword(keyArray[aa], content, href, ivyPara, showCount, linkCss); 225 } 226} 227 228//Õë¶ÔinlineÐÎʽ³öµÄ¶¨ÏòͶ·ÅµÄ 229function getContent(adList,keyList,areaKey,area){ 230 var content = "";//ÕÒ³öÆ¥ÅäµÄ¹ã¸æ 231 try { 232 try { 233 var tarea = top.location.href.replace(/.*ad_play_area=([^&]+).*/g, '$1'); 234 if (tarea != top.location.href && tarea != '') {area = decodeURIComponent(tarea);} 235 }catch(te) {}; 236 var isFind = ""; 237 for(var a=0;a<keyList.length;a++){//½«areaÓëKeyList±È½Ï 238 if(area.indexOf(keyList[a])!= -1){isFind = keyList[a];break;} 239 } 240 if(isFind == "") isFind = "ÆäËûµØÇø";//ÕÒ³öµØÇøÈ«³Æ 241 areaKey = eval(areaKey); 242 var areaFind = ""; 243 for(var a=0;a<areaKey.length;a++){ 244 if(areaKey[a] != null && areaKey[a].key == isFind) {areaFind = areaKey[a].value;break;} 245 } 246 if(areaFind == "") return ""; 247 for(var a=0;a<adList.length;a++){ 248 if(adList[a] != null){ 249 var aList=adList[a].key.split(","); 250 var fList=areaFind.split(","); 251 for(var b=0;b<aList.length;b++){ 252 for(var c=0;c<fList.length;c++){ 253 if(aList[b]==fList[c]){ 254 content = adList[a].value; 255 return content; 256 } 257 } 258 } 259 } 260 } 261 } catch(e) {} 262 return content; 263} 264 265 266/* 267¹ã¸æ¼à²â´úÂë 2011-11-30 268*/ 269(function(){ 270 function calljs(src) { 271 var s = document.createElement('script'); 272 s.src=src; 273 document.getElementsByTagName('head')[0].appendChild(s); 274 } 275 function pcc_online() { 276 if (! /(^|; )u=[^;]/.test(document.cookie)) { 277 var uf=document.cookie.replace(/(^|.*; )uf=([^;]+).*|.*/,"$2") 278 if (uf=="") { 279 document.cookie = "uf=" + ((new Date().getTime())) + 280 ";domain=.pconline.com.cn;path=/;expires=Mon, 30-Nov-2099 08:00:00 GMT;"; 281 } else { 282 var now = new Date().getTime(); 283 if (now - uf > 43200000) { 284 calljs("//ivy.pconline.com.cn/online-self.jsp"); 285 } 286 } 287 } else { 288 if (/(^|; )uf=[^;]/.test(document.cookie)) { 289 document.cookie = "uf=1;domain=.pconline.com.cn;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;"; 290 } 291 } 292 } 293 function pcc_u() { 294 if (! /(^|; )u=[^;]/.test(document.cookie)) { 295 calljs("//ivy.pconline.com.cn/online-u.jsp"); 296 } 297 } 298 function pcc_uf() { 299 var uf=document.cookie.replace(/(^|.*; )uf=([^;]+).*|.*/,"$2") 300 if (uf=="") { 301 try{ 302 document.cookie = "uf=" + ((new Date().getTime())) + ";domain=" + 303 top.location.href.replace(/http(?:s?):\/\/.+?\.(.*?)\/.*/, '.$1') + 304 ";path=/;expires=Mon, 30-Nov-2099 08:00:00 GMT;"; 305 } catch(e) {} 306 } else { 307 var now = new Date().getTime(); 308 if (now - uf > 43200000) { 309 calljs("//ivy.pconline.com.cn/online-uf3.jsp"); 310 } 311 } 312 } 313 314 window.pcc_uf = pcc_uf; 315 // call cookie functions 316 // ¿çÓò iframe ʱ top.location.href Ϊ¿Õ 317 try{ 318 if (! /(^|; )u=[^;]/.test(document.cookie)) { 319 if (top.location.href.replace(/http(?:s?):\/\/.+?\.(.*?).com.cn\/.*/, '$1') == 'pconline') { 320 //pcc_online(); 321 calljs("//ivy.pconline.com.cn/online-u-self.jsp"); 322 } else { 323 //pcc_u(); 324 calljs("//ivy.pconline.com.cn/online-u-other.jsp"); 325 } 326 } 327 328 //Ôö¼Ó·ÃÎʼ´Ê±Éú³Écookie_cµÄ¹¦ÄÜ wyw 2013-05-17 329 if (! /(^|; )c=[^;]/.test(document.cookie)) { 330 if (top.location.href.replace(/http(?:s?):\/\/.+?\.(.*?).com.cn\/.*/, '$1') == 'pconline') { 331 calljs("//ivy.pconline.com.cn/online-c-self.jsp"); 332 } else { 333 calljs("//ivy.pconline.com.cn/online-c.jsp"); 334 } 335 } 336 } catch(e) { 337 338 } 339})(); 340 341 342// 2012-08-20 ¹Ø¼ü×ÖͼƬ¹ã¸æ 343var ivyImgAdList = []; 344 345// keys: ¹Ø¼ü×Ö, types: ['bottom', 'side'], main:Ö÷¹ã¸æÄÚÈÝ, holder:ռλͼƬµØÖ·, adLink£ºµã»÷Á´½Ó, adId£º¹ã¸æ±êʶ 346function ivyImgAd(keys, type, main, holder, jsData, adLink, count, adId) { 347 this.keys = keys.split('|||'); 348 this.main = main; 349 this.holder = holder == 'null' ? null : holder; 350 this.jsData = jsData; 351 this.type = type; 352 this.adLink = adLink; 353 this.count = count; 354 this.adId = adId; 355} 356 357/* for callback, Ô¤´¦Àí´Ó¹ã¸æÏµÍ³»ñÈ¡µ½µÄ¹Ø¼ü×ÖͼƬ¹ã¸æÐÅÏ¢ */ 358function showImgKeywordAd(data) { 359 ivyImgAdList.push(new ivyImgAd(data.keys, data.type, data.main, data.holder, data.jsData, data.adLink, data.count, data.adid)); 360}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.