var pictype = function (u,ru,l,w,h,id,wto,m){var o = "";if(ru.toLowerCase().indexOf('.swf')>0){o ='
';}else if(ru.toLowerCase().indexOf('.jpg')>0||ru.toLowerCase().indexOf('.jpeg')>0||ru.toLowerCase().indexOf('.gif')>0||ru.toLowerCase().indexOf('.png')>0){o ='
';}if(w>30){o+=m;}return o;}; /*pictype图片类型判断 u为图片URL,l为图片地址,w为宽度,h为高度,wto为flash使用透明浮层开关,id为广告div标记,m为广告标记 */ var chain_work="1";//是否在下拉幕后加载。 var xlm_id="web_cntv_xialamu"; var dl_url="http://p1.img.cctvpic.com/fmspic/pd/25300yunnanbaiyao20180910.jpg"; var dl_bak_url=""; var dl_sw="0"; var rdl_url=""; var rdl_bak_url=""; var cd_clickUrl = "http://galaxy.bjcathay.com/c?z=cathay&la=0&si=3&cg=4&c=87&ci=43&or=316&l=3738&bg=3738&b=6772&u=https://equity-vip.tmall.com/agent/mobile.htm?agentId=108028&_bind=true"; var pic_id="cathay"; var r_pic_id="cathay_r"; var cd_picwdh= "25"; var cd_pichgt= "300"; var adflg_sw= "1"; var imp3=""; var imp4=""; function checkdom(str){var ob=document.getElementById(str); return ob;} if (checkdom("detect")==null){ var newDiv = document.createElement("div"); newDiv.id="detect"; newDiv.className="ads ad adsbox doubleclick ad-placement carbon-ads"; newDiv.style.cssText ='height:1px;width:1px;position: absolute;left:-999px;top:-999px;'; newDiv.innerHTML=" "; document.body.insertBefore(newDiv,document.body.childNodes[0]); } var admark='
'; if (adflg_sw==1){admark+='广告';}else{admark+='推广';} admark+='
'; function add3imp(u){if(u!=""&&typeof(u)!='undefined'){var imp='';} else{imp="";}return imp;} var dlcont = pictype(dl_bak_url,dl_url,cd_clickUrl,cd_picwdh,cd_pichgt,pic_id,"opaque",admark); var rdlcont = pictype(rdl_bak_url,rdl_url,cd_clickUrl,cd_picwdh,cd_pichgt,r_pic_id,"opaque",admark); var clsplusdiv=function(zy,con){ var obj='
'; if (zy=='left'){close_pos='right';} if (zy=='right'){close_pos='left';} obj+=con; obj+='关闭'; obj+='
'; return obj; } //zy是左右字串的意思,con是对象内容 var left_dl=clsplusdiv("left",dlcont); var rgt_dl; if (dl_sw==1){ if ((rdl_bak_url==""||rdl_bak_url=="http://")&&(rdl_url==""||rdl_url=="http://")){ rgt_dl=clsplusdiv("right",dlcont); } else{rgt_dl=clsplusdiv("right",rdlcont);} } else{rgt_dl=clsplusdiv("right",dlcont);} if (checkdom("dldiv")==null){ var dldiv = document.createElement("div"); dldiv.id = 'dldiv'; dldiv.innerHTML = ''+add3imp(imp3)+''+add3imp(imp4)+'';//这句话很重要啊,IE很看重。 document.body.insertBefore(dldiv,document.body.childNodes[0]); } var dl_blk = document.getElementById("dldiv"); var fltdiv=function(fd,n,o,w,h,t,p,pz){ if (checkdom(n)==null){ var obj = document.createElement("div"); obj.id=n; obj.style.cssText = 'z-index:2147483500; position:fixed; width:'+w+'px; height:'+h+'px; top:'+t+'px; '+p+':'+pz+'px;overflow:visible;display:none;' obj.innerHTML = o; var dl = document.getElementById(fd); if (dl){dl.appendChild(obj);} else{document.body.insertBefore(obj,document.body.childNodes[0]);} } } /*fd为父级div的ID,n为当前创建div的ID,o为浮层内放置内容,w为宽度,h为高度,t为top值,p为左右,pz为左右偏移值*/ fltdiv("dldiv","lfdiv",left_dl,cd_picwdh,cd_pichgt,100,"left",5) fltdiv("dldiv","rgtdiv",rgt_dl,cd_picwdh,cd_pichgt,100,"right",5) coupl = document.getElementById("lfdiv"); coupr = document.getElementById("rgtdiv"); function sp(){if(coupl){coupl.style.display='block';}if(coupr){coupr.style.display='block';}} if (chain_work==1){var analysis_xlm=setInterval(function(){try{if(document.getElementById(xlm_id+'_all').innerHTML==''){clearInterval(analysis_xlm);sp();}}catch(e){clearInterval(analysis_xlm);sp();}},500);} else{sp();} function leftclsblk(){if(coupl&&dl_sw==1){coupl.innerHTML='';}else{coupl.innerHTML=coupr.innerHTML='';}} function rightclsblk(){if(coupr&&dl_sw==1){coupr.innerHTML='';}else{coupl.innerHTML=coupr.innerHTML='';}} setTimeout(function(){if(document.getElementById("detect").offsetHeight === 0&&dl_url.toLowerCase().indexOf('.swf')>0){document.getElementById("cathay").innerHTML="";if(dl_sw=="1"&&rdl_url.toLowerCase().indexOf('.swf')>0){document.getElementById("cathay_r").innerHTML="";}}else{}},700);