if(!window.isload_qqol){ window.isload_qqol = 1; $(function(){ $('body').append($('div.block_qqol')); }); }else{ lastScrollY=0; var onlinestr=""; function heartBeat(ObjName){ var obj = $('#'+ObjName), top, isxixi = false; if(obj.length<=0) return ; if(obj.parent().is('#xixi')){ obj = obj.parent(); isxixi = true; } obj.css('top', '0px'); top = obj.offset().top; if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop; else if (document.body) diffY = document.body.scrollTop; obj.css('top', -top+diffY+100); } var textStyle=""; var titleStyle=""; textStyle=(intstyle==2||intstyle==3||intstyle==4)? "#fff":"#333"; var haveonlineType = typeof(onlineType)=='undefined'?false:true; if(intstyle==17){//新风格 var newstyle = true; var NiceBoxOnLineQQCode = ''; var pos = '$pos'; var QQMain = '
'; if(qqusedepType=="depyes"){//是否使用分类 var qqdata = {}; for(var key=0;key'; } QQMain += ''; }else{ QQMain += ''; } if(workingHours!=0){ QQMain += '

工作时间

'; } if(contactWay!=0){ QQMain += '

联系方式

'; } QQMain += '
'; NiceBoxOnLineQQCode += '
'; }else if(haveonlineType&&onlineType.length>0){ var NiceBoxOnLineQQCode = ''; if(isshowstyle=="1"){//伸缩样式的css NiceBoxOnLineQQCode=""; } //判断qq显示样式 if(qqusedepType=="depyes"){ var fenlei=new Array();//分类名称 var qqsort=new Array();//分类后的qq for(j=0;j10000){ qqtitlestrshow = qqstyle==4?(qqTitlestr[qqsort2[j]]?qqTitlestr[qqsort2[j]]:"QQ交谈"):"";//2013-01-05 by Amber onlinest+=""; if(QQStatusObj[qqstr[qqsort2[j]]]==0){ onlinest+=""; }else{ onlinest+=""; } onlinest+= qqtitlestrshow+"
"; } }else if(qqsort2[j]!=""&&onlineType[qqsort2[j]]=="taobao"){ onlinest+="点击这里给我发消息
"; }else if(qqsort2[j]!=""&&onlineType[qqsort2[j]]=="msn"){ onlinest+="
"; } } biaoti="
"+qqSPTdelRepeat[i]+"
"; str.push(biaoti+onlinest); } for(i=0;i10000&&onlineType[i-1]=="qq"){ qqtitlestrshow = qqstyle==4?(qqTitlestr[i-1]?qqTitlestr[i-1]:"QQ交谈"):"";//2013-01-05 by Amber onlinestr+=""; if(QQStatusObj[qqstr[i-1]]==0){ onlinestr+=""; }else{ onlinestr+=""; } onlinestr+=qqtitlestrshow+"
"; } } for(i=1;i<=10;i++){ if(onlineType[i-1]=="msn"){ var msnsrc=""; if(qqstyle==1){ msnsrc = "http://box2js.pc51.com/onlineqq/images/msn1.png"; }else{ msnsrc = "http://box2js.pc51.com/onlineqq/images/msn.png"; } onlinestr+="
"; } } for(i=1;i<=10;i++){ if(onlineType[i-1]=="taobao"){ onlinestr+="点击这里给我发消息
"; } } } if(isshowstyle=="1"){//是否伸缩样 NiceBoxOnLineQQCode+="
<\/td>
"+qqdescripthead+"
" + onlinestr + "
<\/td>
"+qqdescript+"
<\/td>
"; }else{ NiceBoxOnLineQQCode="
"+qqdescripthead.substr(0,4)+" 
" + onlinestr + "
"+qqdescript.substr(0,8)+"
"; } }else{ var NiceBoxOnLineQQCode = ''; //判断qq显示样式 if(qqusedepType=="depyes"){ var fenlei=new Array();//分类名称 var qqsort=new Array();//分类后的qq for(j=0;j10000){ qqtitlestrshow = qqstyle==6?(qqTitlestr[qqsort2[j]]?qqTitlestr[qqsort2[j]]:"QQ交谈"):""; if(online[qqsort2[j]]==1){ onlinest+=""+qqtitlestrshow+"
"; }else{ onlinest+=""+qqtitlestrshow+"
"; } } } } biaoti="
"+qqSPTdelRepeat[i]+"
"; str.push(biaoti+onlinest); } for(i=0;i10000){ qqtitlestrshow = qqstyle==6?(qqTitlestr[i-1]?qqTitlestr[i-1]:"QQ交谈"):""; if(online[i-1]==1){ onlinestr+=""+qqtitlestrshow+"
"; }else{ onlinestr+=""+qqtitlestrshow+"
"; } } } } if(isshowstyle=="1"){//是否伸缩样 NiceBoxOnLineQQCode+="
<\/td>
"+qqdescripthead+"
" + onlinestr + "
<\/td>
"+qqdescript+"
<\/td>
"; }else{ NiceBoxOnLineQQCode="
"+qqdescripthead+" 
" + onlinestr + "
"+qqdescript+"
"; } } if(!document.getElementById('0b33f2e8843e8b440dd8caf7086995b0')){ document.write('
'); } $('#0b33f2e8843e8b440dd8caf7086995b0').html(NiceBoxOnLineQQCode); if(isshowstyle=="1"){//是否伸缩样式,是则写些相应要用到的js函数 lastScrollY=0; var InterTime = 1; var maxWidth=-1; var minWidth=-110; var numInter = 8; var BigInter ; var SmallInter ; //document.getElementById("kefuimg").style.height = var o = document.getElementById("xixi"); var i = parseInt(o.style.right); function toBig() { //$(o).stop().animate({'right': -($(window).width() - $(o).offset().left - 140 - parseInt($(o).css('right')))}); $('#NiceBoxOnLineQQ').stop().animate({left:'0px'}); } function toSmall() { //$(o).stop().animate({'right': -($(window).width() - $(o).offset().left - 32 - parseInt($(o).css('right')))}); $('#NiceBoxOnLineQQ').stop().animate({left:'112px'}); } $('#NiceBoxOnLineQQ').hover(toBig, toSmall); $(function(){ if($.browser && $.browser.msie&&$.browser.version=="6.0"&&$("html")[0].scrollHeight>$("html").height()){ $("html").css("overflowX","hidden"); } }); } $(window).scroll(function(){ heartBeat('NiceBoxOnLineQQ'); }); setTimeout(function(){ $(window).scroll(); var obj = $('#NiceBoxOnLineQQ'), isxixi=0; if(obj.length<=0) return ; if(obj.parent().is('#xixi')){ obj = obj.parent(); isxixi = 1; } var right = -($(window).width() - obj.offset().left - (window.newstyle?0:(isxixi?140:100)) - parseInt((obj.css('right')=='auto'?$(window).width():obj.css('right')))); obj.css('right', right); if(isxixi){ $('#NiceBoxOnLineQQ').css({position:'absolute',top:0,left:'112px'}); obj.height($('#NiceBoxOnLineQQ').height()); } if(isshow){ $('#leftQQPage').hide(); $('#rightQQPage').show(); } }, 1); //window.setInterval("heartBeat('NiceBoxOnLineQQ')",1); }