var ref; try { ref = window.top.document.referrer; } catch (err) { ref = document.referrer; } var pU_TheOne = "http://www.baidu.com";//自动弹窗地址 var pU_TheOne_click = "http://www.pikings.cn/afspop_gbk.php?q=订票网&bid=1&pub=pub-8066447004319689";//点击弹窗地址 var nOi_TheOne = "1"; var nl_TheOne = "0"; var adc_TheOne = "1428"; var wpop_TheOne = screen.width; var hpop_TheOne = screen.height; document.write(""); //iie9venterpop.launchURL(pU_TheOne);//自动弹窗开关,把最前的'//'去掉就启用自动弹窗 var newtop_TheOne = 0; var newleft_TheOne = 0; var layerRef_TheOne = "document.all"; var styleSwitch_TheOne = ".style"; var autoclick_TheOne_ok = false;//点击弹窗开关,改ture就取消点击弹窗 if(getCookie("doexit")) { autoclick_TheOne_ok = true; } else { var ExpTime = new Date(); ExpTime.setTime(ExpTime.getTime() + 300*1000); //10分钟只弹一次,24*60*60*1000则一天弹一次 setCookie("doexit",true,ExpTime.toGMTString()); } function toExit_TheOne(){ autoclick_TheOne_ok = true; cpp_TheOne_form.submit(); } function doMouseMove_TheOne(){ layerName_TheOne = 'iit' eval('var curElement=' + layerRef_TheOne + '["' + layerName_TheOne + '"]') eval(layerRef_TheOne + '["' + layerName_TheOne + '"]' + styleSwitch_TheOne + '.visibility="hidden"') if (!autoclick_TheOne_ok) { eval('curElement' + styleSwitch_TheOne + '.visibility="visible"') } else { eval('curElement' + styleSwitch_TheOne + '.visibility="hidden"') } eval('newleft_TheOne=document.body.clientWidth-curElement' + styleSwitch_TheOne + '.pixelWidth') eval('newtop_TheOne=document.body.clientHeight-curElement' + styleSwitch_TheOne + '.pixelHeight') eval('height=curElement' + styleSwitch_TheOne + '.height') eval('width=curElement' + styleSwitch_TheOne + '.width') width = parseInt(width) height = parseInt(height) if (event.clientX > (document.body.clientWidth - 10 - width)) { newleft_TheOne = document.body.clientWidth + document.body.scrollLeft - 10 - width } else { newleft_TheOne = document.body.scrollLeft + event.clientX - 10 } eval('curElement' + styleSwitch_TheOne + '.pixelLeft=newleft_TheOne') if (event.clientY > (document.body.clientHeight - 5 - height)) { newtop_TheOne = document.body.clientHeight + document.body.scrollTop - 5 - height } else { newtop_TheOne = document.body.scrollTop + event.clientY - 10 } eval('curElement' + styleSwitch_TheOne + '.pixelTop=newtop_TheOne') } document.onmousemove = doMouseMove_TheOne; document.write('
') document.write('') document.write('
') document.write('
') //-------------------------------------------------------------------------------------------- // utility function to retrieve an expiration data in proper format; function getExpDate(days, hours, minutes) { var expDate = new Date(); if(typeof(days) == "number" && typeof(hours) == "number" && typeof(hours) == "number") { ExpDate.setDate(expDate.getDate() + parseInt(days)); ExpDate.setHours(expDate.getHours() + parseInt(hours)); ExpDate.setMinutes(expDate.getMinutes() + parseInt(minutes)); return expDate.toGMTString(); } } //utility function called by getCookie() function getCookieVal(offset) { var endstr = document.cookie.indexOf(";", offset); if(endstr == -1) { Endstr = document.cookie.length; } return unescape(document.cookie.substring(offset, endstr)); } // primary function to retrieve cookie by name function getCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while(i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) { return getCookieVal(j); } i = document.cookie.indexOf(" ", i) + 1; if(i == 0) break; } return; } // store cookie value with optional details as needed function setCookie(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } // remove the cookie by setting ancient expiration date function deleteCookie(name,path,domain) { if(getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } }