var afp_src_url = "//imgd.soufunimg.com/2018/08/27/220k/2ca912900b5b4918a0f3c293a3849671.jpg"; var afp_link_url = "//adshow.fang.com/release/clickredirect?z=fang&la=0&si=968&cg=0&c=72410&ci=116569&or=35782&l=0&bg=0&b=401180&u=http://jiaozuo.fang.com/"; var afp_time_url = ""; var afp_count_limit = 99999; var afp_count_limit_cur = 0; var afp_timeout =8; var afp_objTimer; var afp_open_tab = 0; var afp_status = 0; var afp_window_height = 0; var afp_window_scrollTop = 0; var afp_window_objTime; var afp_yoyi_open = false; var afp_yoyi_opening = false; var afp_yoyi_close = true; var afp_yoyi_closeing = false; var afp_objTimer100; //document.write(""); document.write("
"); function afp_show_flash (afp_src_url) { var flashStr = ""; flashStr+='
'; flashStr+='
'; flashStr+='
'; flashStr+='
'; flashStr+='
'; flashStr+='
'; if(afp_src_url.toLowerCase().indexOf("swf")>-1){ flashStr+='
'; flashStr+=' '; flashStr+='
'; flashStr+='
'; }else{ flashStr += ""; } flashStr+='
'; flashStr+='
'; flashStr+='
'; flashStr+='
'; flashStr += ""; flashStr += "";//20,110,1,127,1,226,20,239 flashStr += ""; flashStr += ""; flashStr += ""; flashStr += ""; document.getElementById("afp_fa_video").innerHTML = flashStr; setInterval("afp_faResize()",100); } function afp_faResize() { if(!document.getElementById("afp_fa_video")) { return; } var afp_divHeight = document.getElementById("afp_fa_video").offsetHeight; var afp_divWidth = document.getElementById("afp_fa_video").offsetWidth; var afp_docWidth = 0; var afp_docHeight = 0; var afp_scrollLeft = 0; var afp_scrollTop = 0; if(window.pageXOffset) { afp_scrollLeft=window.pageXOffset; } else if(document.documentElement&&document.documentElement.scrollLeft) { afp_scrollLeft=document.documentElement.scrollLeft; } else if(document.body) { afp_scrollLeft=document.body.scrollLeft; } if(window.pageYOffset) { afp_scrollTop=window.pageYOffset; } else if(document.documentElement&&document.documentElement.scrollTop) { afp_scrollTop=document.documentElement.scrollTop; } else if(document.body) { afp_scrollTop=document.body.scrollTop; } if(window.innerWidth) { afp_docWidth=parseInt(window.innerWidth) - 17; } else if(document.documentElement&&document.documentElement.clientWidth) { afp_docWidth=document.documentElement.clientWidth; } else if(document.body) { afp_docWidth=document.body.clientWidth; } if(window.innerHeight) { afp_docHeight=parseInt(window.innerHeight) - 17; } else if(document.documentElement&&document.documentElement.clientHeight) { afp_docHeight=document.documentElement.clientHeight; } else if(document.body) { afp_docHeight=document.body.clientHeight; } document.getElementById("afp_fa_video").style.top = (parseInt(afp_docHeight) - parseInt(afp_divHeight) + parseInt(afp_scrollTop)) + "px"; document.getElementById("afp_fa_video").style.left = (parseInt(afp_docWidth) - parseInt(afp_divWidth) + parseInt(afp_scrollLeft)) + "px"; } function afp_faMoveLeft() { var step = 50; afp_yoyi_opening = true; var afp_divLefts = parseInt(document.getElementById("afp_fa_video").style.left); var afp_divWidths = parseInt(document.getElementById("afp_fa_video").style.width); if (342 - afp_divWidths < 50) { step = 342 - afp_divWidths; window.clearInterval(afp_objTimer); afp_yoyi_opening = false; afp_yoyi_open = true; } document.getElementById("afp_fa_video").style.left = (afp_divLefts - step) + "px"; document.getElementById("afp_fa_video").style.width = (afp_divWidths + step) + "px"; } function afp_faMoveRight() { var step = 50; afp_yoyi_closeing = true; var afp_divLefts = parseInt(document.getElementById("afp_fa_video").style.left); var afp_divWidths = parseInt(document.getElementById("afp_fa_video").style.width); if (afp_divWidths <= 42) { step = afp_divWidths - 15; window.clearInterval(afp_objTimer); mark_three=2; afp_yoyi_closeing = false; afp_yoyi_close = true; } document.getElementById("afp_fa_video").style.width = (afp_divWidths - step) + "px"; document.getElementById("afp_fa_video").style.left = (afp_divLefts + step) + "px"; if (afp_divWidths <= 42) { afp_yoyi_open = false; } } function afp_faTracker(s) { if (!document.getElementById("afp_fa_img")) { return; } if (afp_count_limit_cur <= afp_count_limit) { document.getElementById("afp_fa_img").src = s; } } function afp_ExCommand(command) { if(command == "open" && afp_open_tab == 0 && afp_yoyi_open==false && afp_yoyi_close==true) { afp_open_tab = 1; afp_status = 0; afp_count_limit_cur ++; afp_faTracker(afp_time_url+"0"); document.getElementById("afp_fa_video").style.width = "17px"; document.getElementById("afp_fa_video").style.height = "285px"; afp_faResize(); afp_objTimer = window.setInterval("afp_faMoveLeft()",50); afp_objTimer100 = setTimeout("afp_ExCommand ('pos100')", afp_timeout * 1000); } else if(command == "pos100") { if (afp_status == 0) { afp_faTracker(afp_time_url+"100"); } afp_objTimer = window.setInterval("afp_faMoveRight()",50) afp_open_tab = 0; } else if(command == "close") { window.clearInterval(afp_objTimer100); afp_faTracker(afp_time_url+"-1"); afp_objTimer = window.setInterval("afp_faMoveRight()",50) afp_open_tab = 0; afp_status = -1; afp_yoyi_open = false; afp_yoyi_close = true; } else if(command == "share") { window.open("mailto:?subject=%B1%EA%CC%E2%A3%BA%CD%C6%BC%F6%BE%AB%C3%C0Flash&body=%C4%DA%C8%DD%A3%BA%C4%FA%B5%C4%BA%C3%D3%D1%CE%AA%C4%FA%CD%C6%BC%F6%C1%CB%D2%BB%B8%F6Flash%B6%CC%C6%AC%2C%C4%FA%BF%C9%D2%D4%B5%E3%BB%F7%C8%E7%CF%C2%B5%D8%D6%B7%D0%C0%C9%CD%3A"+window.location); } else if(command == "link") { window.open(afp_link_url); } else if(command == "download") { window.open(afp_src_url); } return 1; } function afp_setOpen_flash(){ afp_window_height = jQuery(window).height(); afp_window_objTime = window.setInterval('afp_open_flash()',50); } function afp_open_flash(){ if(afp_window_scrollTop