mark_duilian=1; var soufun_top_wdith=960; var soufun_top_height=35; var soufun_top_src="//imgd.soufunimg.com/2018/09/15/220k/4fc5ed6255fb45519641267c40249d77.jpg"; var soufun_back_img="//imgd.soufunimg.com/2018/09/15/220k/de2347f9818e474d8d764679f0c5eba8.jpg"; var soufun_top_link="//adshow.fang.com/release/clickredirect?z=fang&la=0&si=968&cg=0&c=72408&ci=116569&or=35782&l=0&bg=0&b=483554&u=http://dzhgbc.fang.com/"; var soufun_settimeout=6; var suofang_king_objTimes; var soufun_slide_top="soufun_slide_top___"; document.write('
'); var beijing_height=450; var beijing_wid=175; var createHtml72408=function(){ var str=''; str+='
'; str+=''; str+=''; str+=''; str+='
'; str+='
'; if(soufun_top_src.indexOf("swf")>-1){ str+=''; str+=''; } if(soufun_top_src.indexOf("jpg")>-1 || soufun_top_src.indexOf("gif")>-1 ||soufun_top_src.indexOf("png")>-1 ){ str+=''; } str+='
'; document.getElementById(soufun_slide_top).innerHTML=str; document.getElementById(soufun_slide_top).style.height=soufun_top_height+"px"; document.getElementById(soufun_slide_top).style.width=soufun_top_wdith+"px"; document.getElementById(soufun_slide_top).style.margin="0px auto"; } // function lefts(){ var client_h=document.documentElement?document.documentElement.clientWidth:document.body.clientHeight; var widths=(client_h-soufun_top_wdith)/2-beijing_wid+"px"; document.getElementById("king_left").style.left=widths; document.getElementById("king_right").style.right=widths; } var dis_timeout; function ad_Down(){ var step=5; var divh=document.getElementById("king_right").style.height; //alert(divh); var spx=parseInt(divh); //alert(spx); var cha=beijing_height-spx; if(cha<5){ window.clearInterval(settime); step=cha; dis_timeout=window.setTimeout(slideUp__yoyi,1000*soufun_settimeout); } document.getElementById("king_right").style.height=spx+step+"px"; document.getElementById("king_left").style.height=spx+step+"px"; } function ad_Up(){ var step=5; var divh=document.getElementById("king_right").style.height; var spx=parseInt(divh); if(spx<=5){ window.clearInterval(settime); window.clearTimeout(dis_timeout); document.getElementById("king_text").style.display=""; document.getElementById("king_right").style.display="none"; document.getElementById("king_left").style.display="none"; if(mark_time!=1){ mark_three=2; } } if(spx>5){ document.getElementById("king_right").style.height=spx-step+"px"; document.getElementById("king_left").style.height=spx-step+"px"; } } function slideDown(){ document.getElementById("king_text").style.display="none"; document.getElementById("king_right").style.display=""; document.getElementById("king_left").style.display=""; settime=window.setInterval(ad_Down,1); } var settime; function slideUp__yoyi(){ settime=window.setInterval(ad_Up,1); } function addLoadEvent_yoyi(func) { jQuery(function($) { func(); }); } function createKingLRHtml(){ var kingLRStr = ''; kingLRStr +=''; kingLRStr +=''; jQuery('#'+soufun_slide_top).after(kingLRStr); } function show_king_ad(){ addLoadEvent_yoyi(function(){ createHtml72408(); createKingLRHtml(); window.setInterval(lefts,100); jQuery("#king_left").slideDown(1000); jQuery("#king_right").slideDown(1000,function(){ dis_timeout=window.setTimeout(slideUp__yoyi,1000*soufun_settimeout); }); }); window.clearInterval(suofang_king_objTimes); } var king_times = 0; suofang_king_objTimes = window.setInterval( function(){ king_times++; if(is_ex_biantonglan){ if(mark_huangguan==1){ show_king_ad(); } } if(king_times==3 && is_ex_biantonglan==false){ show_king_ad(); } } ,1000);