- UID
- 86051
- 帖子
- 42
- 精华
- 0
- 贡献
- 3
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2008-1-11
|
1378#
发表于 2010-1-11 00:57
| 只看该作者
- <script type="text/javascript">defalutLoginSuccess=function(){window.location=window.location};var IknowEgg=(function(){var time=new Date(new Date().getTime()+3600000*24);var eggtype="1";var crypt="79223039323537343038374637334338313730453341353334324541364636393331d7d4";var cookie=getCookie("IKNEGG");function hide(){G("iknowguidecontent").innerHTML="";Fe.hide("iknowguideegg")}function delay(){hide();setCookie("IKNEGG","0_"+eggtype+"_"+crypt,time,"/")}function close(){hide();setCookie("IKNEGG","9_0_0",time,"/")}function reg(){hide();setCookie("IKNEGG","1_"+eggtype+"_"+crypt,time,"/");userReg(null,"eggreg")}function login(){hide();setCookie("IKNEGG","1_"+eggtype+"_"+crypt,time,"/");userLogin(null,null,"egglogin")}function done(){Fe.Ajax.post("/q","ct=22&cm=100505&word="+crypt+"&qid="+eggtype+"&tn=ikajaxsubmit",function(xhr){var res;res=eval("("+xhr.responseText+")");if(res.result=="0"&&res.browseEggType>0){IknowEgg.success(res.browseEggType)}if(res.result=="12500"){Pop.show("友情提示",{info:"您今天已中过彩蛋",width:"360",height:"260"});setTimeout(Pop.hide,3000)}});setCookie("IKNEGG","2_0_0",time,"/")}function init(){Fe.hide("iknowguideegg");var islogin=(""=="1");var newegg=false;if(!cookie){cookie="0_"+eggtype+"_"+crypt;newegg=true}var egg=cookie.split("_");var status=egg[0];eggtype=eggtype>0?eggtype:(egg[1]||0);crypt=crypt.length==0?(egg[2]||0):crypt;if(!eggtype||eggtype<=0||status>1){return }cookie=[status,eggtype,crypt].join("_");var qbguide=getCookie("IKGUIDE");if(!islogin&&(qbguide=="-1"&&G("newuserguide"))){return }if(status=="0"){G("iknowguidecontent").innerHTML='<object title="知道彩蛋" onmousedown="EggCallBack('+eggtype+')" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="150" height="150"><param name="movie" value="/flash/egg.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="/flash/egg.swf" width="150" height="150" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed></object>';nslog(location.href,100,{cmd:"eggshow",eggid:eggtype});Fe.show("iknowguideegg");if(!newegg){setCookie("IKNEGG",cookie,new Date(0),"/")}}if(status=="1"){if(""=="1"){IknowEgg.done()}}Fe.Ajax.sio("/js/baidu.dragable.js",function(){try{baidu.dragable(G("iknowguideegg"),{handler:G("iknowguidehandle")})}catch(e){}})}function success(type){if(type>0){Fe.show("iknowguideegg");try{G("iknowguidecontent").innerHTML='<iframe id="IKNEGGframe" name="IKNEGGframe" style="width:420px;height:360px;border:0;" frameborder="no" scrolling="no"></iframe>';setTimeout(function(){G("IKNEGGframe").src="/egg/"+type+"done.html?t="+time.getTime()},150)}catch(e){}}}return{hide:hide,close:close,success:success,done:done,reg:reg,login:login,delay:delay,init:init}})();function EggCallBack(A){nslog(location.href,101,{cmd:"eggclick",eggid:A});if((""=="1")){Fe.hide("iknowguideegg");IknowEgg.done()}else{G("iknowguidecontent").innerHTML='<iframe src="/egg/'+A+'.html" width="420" height="360" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'}}IknowEgg.init();</script>
复制代码
希望能够过滤这个百度知道彩蛋。 |
|