QQ客服的代码如下:
<SCRIPT language=javascript charset=gb2312> <!-- document.writeln("<STYLE type=\"text/css\">"); document.writeln("#siderIMchat_main {"); document.writeln(" MARGIN:0; WIDTH: 158px;color:#333"); document.writeln("}"); document.writeln("#siderIMchat_main img{"); document.writeln("border:0;/*background:url(img/loading.gif) no-repeat center center*/"); document.writeln("}"); document.writeln("#siderIMchat_main a{"); document.writeln("color:#036"); document.writeln("}"); document.writeln("#siderIMchat_main a:hover{"); document.writeln("color:#f30"); document.writeln("}"); document.writeln("#siderIMchat_main .top {"); document.writeln(" BACKGROUND: url(img/siderIM_title.gif); HEIGHT: 34px"); document.writeln("}"); document.writeln("#siderIMchat_main .infobox {"); document.writeln(" TEXT-ALIGN: center; PADDING-BOTTOM: 5px; LINE-HEIGHT: 14px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: url(img/siderIM_infobox.gif) #bdc5cb no-repeat; COLOR: #000; FONT-WEIGHT: 700; PADDING-TOP: 5px"); document.writeln("}"); document.writeln("#siderIMchat_main .bg {"); document.writeln(" PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: url(img/siderIM_bg.gif); PADDING-TOP: 5px"); document.writeln("}"); document.writeln("#siderIMchat_main UL {"); document.writeln(" MARGIN:0;"); document.writeln("}"); document.writeln("#siderIMchat_main UL LI {"); document.writeln("list-style:none;"); document.writeln("text-align:center;"); document.writeln("line-height:20px;"); document.writeln("}"); document.writeln(".qqkf{"); document.writeln("background:#ccc;height:22px;line-height:22px"); document.writeln("}"); document.writeln("#siderIMchat_main .close {"); document.writeln("width:100%;"); document.writeln("text-align:center"); document.writeln("}"); document.writeln("#siderIMchat_main .bottom {"); document.writeln(" BACKGROUND: url(img/siderIM_bottom.gif); HEIGHT: 9px; OVERFLOW: hidden"); document.writeln("}"); document.writeln("</STYLE>"); document.writeln(""); //--> document.writeln("<div id=\'QuickMenu\' style=\'right:3px;top:100px;position:absolute;\'>"); document.writeln("<div id=\'RightMenu'\ style=\'float:right;overflow: hidden;display:none;\'>"); document.writeln("<div style=\'margin:0;padding:0px;border:0px;overflow: hidden;\'>"); document.writeln("<DIV id=siderIMchat_main>"); document.writeln(""); document.writeln("<DIV class=top></DIV>"); document.writeln(""); document.writeln("<DIV class=infobox></DIV>"); document.writeln("<!-- 中间开始-->"); document.writeln("<DIV class=\"bg \">"); document.writeln("<UL>"); document.writeln("<li class=qqkf><b>北京中视新力在线客服</b>"); document.writeln("</li>"); document.writeln(" <LI>"); document.writeln("<table width=\"100%\" border=\"0\">"); <% Set rs = server.CreateObject("adodb.recordset") sql = "select * from qq where id=1" rs.open sql,conn,1,1 if not rs.eof then %> document.writeln(" <tr>"); document.writeln(" <td align=\"center\"><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq1")%>&&Site=描述&&Menu=yes\"><img border=\"0\" "); document.writeln(" src=\"http:\/\/wpa.qq.com\/pa?p=1:<%=rs("qq1")%>:10\" \/><\/a><\/td>"); document.writeln(" <td><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq1")%>&&Site=描述&&Menu=yes\" title='点击马上咨询'><%=rs("kf1")%><\/a><\/td>"); document.writeln(" <\/tr>"); document.writeln(" <tr>"); document.writeln(" <td align=\"center\"><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq2")%>&&Site=描述&&Menu=yes\"><img border=\"0\" "); document.writeln(" src=\"http:\/\/wpa.qq.com\/pa?p=1:<%=rs("qq2")%>:10\" \/><\/a><\/td>"); document.writeln(" <td><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq2")%>&&Site=描述&&Menu=yes\" title='点击马上咨询'><%=rs("kf2")%><\/a><\/td>"); document.writeln(" <\/tr>"); document.writeln(" <tr>"); document.writeln(" <td align=\"center\"><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq3")%>&&Site=描述&&Menu=yes\"><img border=\"0\" "); document.writeln(" src=\"http:\/\/wpa.qq.com\/pa?p=1:<%=rs("qq3")%>:10\" \/><\/a><\/td>"); document.writeln(" <td><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq3")%>&&Site=描述&&Menu=yes\" title='点击马上咨询'><%=rs("kf3")%><\/a><\/td>"); document.writeln(" <\/tr>"); <% end if %> document.writeln("<\/table>") document.writeln("</LI>"); document.writeln(" </UL>"); document.writeln("<DIV class=\"close\"></DIV>"); document.writeln("</DIV>"); document.writeln("<!--中间结束-->"); document.writeln(""); document.writeln("<DIV class=bottom></DIV>"); document.writeln(""); document.writeln("</DIV>"); document.writeln(" </div></div>"); document.writeln("<div style=\'float:right;width:24px;margin:9px 0 0 0;border: 0px;\'><img id=menutop onMouseOver=\"javascript:ChangeMenu('RightMenu',160,500)\" border=0 height=100 src=img/kefu.gif width=24></div>"); document.writeln(" </div></div>") var QuickScrollYLast=0; var QuickMenu=document.getElementById("QuickMenu") window.setInterval("LoadMenu()",1); function LoadMenu(){ var QuickScrollYDefault; if(document.documentElement&&document.documentElement.scrollTop){ QuickScrollYDefault=document.documentElement.scrollTop; }else if(document.body){ QuickScrollYDefault=document.body.scrollTop; }else{ } QuickPercent=.1*(QuickScrollYDefault-QuickScrollYLast); if(QuickPercent>0){ QuickPercent=Math.ceil(QuickPercent); }else{ QuickPercent=Math.floor(QuickPercent); } QuickMenu.style.top=parseInt(QuickMenu.style.top)+QuickPercent+"px"; QuickScrollYLast=QuickScrollYLast+QuickPercent; } var MenuX; var MenuY; var MenuCloseX; var MenuCloseY; function ChangeMenu(id,menuwidth,menuheight){ clearInterval(MenuX); clearInterval(MenuY); clearInterval(MenuCloseX); clearInterval(MenuCloseY); var o = document.getElementById(id); if(o.style.display == "none"){ o.style.display = "block"; o.style.width = "1px"; o.style.height = "1px"; MenuX = setInterval(function(){menuopenx(o,menuwidth,menuheight)},30); document.getElementById("menutop").src="img/close.gif"; }else{ document.getElementById("menutop").src="img/kefu.gif"; MenuCloseY = setInterval(function(){menuclosex(o)},30); } } function menuopenx(o,x,y){/*--打开x--*/ var menucx = parseInt(o.style.width); if(menucx < x){ o.style.width = (menucx + Math.ceil((x-menucx)/5)) +"px"; }else{ clearInterval(MenuX); //MenuY = setInterval(function(){menuopeny(o,y)},30); } var menucy = parseInt(o.style.height); if(menucy < y){ o.style.height = (menucy + Math.ceil((y-menucy)/5)) +"px"; }else{ clearInterval(MenuY); } } function menuopeny(o,y){/*--打开y--*/ var menucy = parseInt(o.style.height); if(menucy < y){ o.style.height = (menucy + Math.ceil((y-menucy)/5)) +"px"; }else{ clearInterval(MenuY); } } function menuclosex(o){/*--打开x--*/ var menucx = parseInt(o.style.width); if(menucx > 0){ o.style.width = (menucx - Math.ceil(menucx/5)) +"px"; }else{ clearInterval(MenuCloseX); //MenuCloseX = setInterval(function(){menuclosey(o)},30); } var menucy = parseInt(o.style.height); if(menucy > 0){ o.style.height = (menucy - Math.ceil(menucy/5)) +"px"; }else{ clearInterval(MenuCloseY); o.style.display = "none"; } } function menuclosey(o){/*--打开y--*/ var menucy = parseInt(o.style.height); if(menucy > 0){ o.style.height = (menucy - Math.ceil(menucy/5)) +"px"; }else{ clearInterval(MenuCloseY); o.style.display = "none"; } } </SCRIPT>
统计流量的代码如下:
<script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F583f7995904af912a3a96d267af2d14c' type='text/javascript'%3E%3C/script%3E")); </script>
来个大侠帮帮忙,将统计流量的代码插入到QQ客服中,谢谢了如右图效果,在线等,好了立马给分,谢谢啦
QQ客服代码:
<SCRIPT language=javascript charset=gb2312> <!-- document.writeln("<STYLE type=\"text/css\">"); document.writeln("#siderIMchat_main {"); document.writeln(" MARGIN:0; WIDTH: 158px;color:#333"); document.writeln("}"); document.writeln("#siderIMchat_main img{"); document.writeln("border:0;/*background:url(img/loading.gif) no-repeat center center*/"); document.writeln("}"); document.writeln("#siderIMchat_main a{"); document.writeln("color:#036"); document.writeln("}"); document.writeln("#siderIMchat_main a:hover{"); document.writeln("color:#f30"); document.writeln("}"); document.writeln("#siderIMchat_main .top {"); document.writeln(" BACKGROUND: url(img/siderIM_title.gif); HEIGHT: 34px"); document.writeln("}"); document.writeln("#siderIMchat_main .infobox {"); document.writeln(" TEXT-ALIGN: center; PADDING-BOTTOM: 5px; LINE-HEIGHT: 14px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: url(img/siderIM_infobox.gif) #bdc5cb no-repeat; COLOR: #000; FONT-WEIGHT: 700; PADDING-TOP: 5px"); document.writeln("}"); document.writeln("#siderIMchat_main .bg {"); document.writeln(" PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: url(img/siderIM_bg.gif); PADDING-TOP: 5px"); document.writeln("}"); document.writeln("#siderIMchat_main UL {"); document.writeln(" MARGIN:0;"); document.writeln("}"); document.writeln("#siderIMchat_main UL LI {"); document.writeln("list-style:none;"); document.writeln("text-align:center;"); document.writeln("line-height:20px;"); document.writeln("}"); document.writeln(".qqkf{"); document.writeln("background:#ccc;height:22px;line-height:22px"); document.writeln("}"); document.writeln("#siderIMchat_main .close {"); document.writeln("width:100%;"); document.writeln("text-align:center"); document.writeln("}"); document.writeln("#siderIMchat_main .bottom {"); document.writeln(" BACKGROUND: url(img/siderIM_bottom.gif); HEIGHT: 9px; OVERFLOW: hidden"); document.writeln("}"); document.writeln("</STYLE>"); document.writeln(""); //--> document.writeln("<div id=\'QuickMenu\' style=\'right:3px;top:100px;position:absolute;\'>"); document.writeln("<div id=\'RightMenu'\ style=\'float:right;overflow: hidden;display:none;\'>"); document.writeln("<div style=\'margin:0;padding:0px;border:0px;overflow: hidden;\'>"); document.writeln("<DIV id=siderIMchat_main>"); document.writeln(""); document.writeln("<DIV class=top></DIV>"); document.writeln(""); document.writeln("<DIV class=infobox></DIV>"); document.writeln("<!-- 中间开始-->"); document.writeln("<DIV class=\"bg \">"); document.writeln("<UL>"); document.writeln("<li class=qqkf><b>北京中视新力在线客服</b>"); document.writeln("</li>"); document.writeln(" <LI>"); document.writeln("<table width=\"100%\" border=\"0\">"); <% Set rs = server.CreateObject("adodb.recordset") sql = "select * from qq where id=1" rs.open sql,conn,1,1 if not rs.eof then %> document.writeln(" <tr>"); document.writeln(" <td align=\"center\"><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq1")%>&&Site=描述&&Menu=yes\"><img border=\"0\" "); document.writeln(" src=\"http:\/\/wpa.qq.com\/pa?p=1:<%=rs("qq1")%>:10\" \/><\/a><\/td>"); document.writeln(" <td><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq1")%>&&Site=描述&&Menu=yes\" title='点击马上咨询'><%=rs("kf1")%><\/a><\/td>"); document.writeln(" <\/tr>"); document.writeln(" <tr>"); document.writeln(" <td align=\"center\"><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq2")%>&&Site=描述&&Menu=yes\"><img border=\"0\" "); document.writeln(" src=\"http:\/\/wpa.qq.com\/pa?p=1:<%=rs("qq2")%>:10\" \/><\/a><\/td>"); document.writeln(" <td><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq2")%>&&Site=描述&&Menu=yes\" title='点击马上咨询'><%=rs("kf2")%><\/a><\/td>"); document.writeln(" <\/tr>"); document.writeln(" <tr>"); document.writeln(" <td align=\"center\"><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq3")%>&&Site=描述&&Menu=yes\"><img border=\"0\" "); document.writeln(" src=\"http:\/\/wpa.qq.com\/pa?p=1:<%=rs("qq3")%>:10\" \/><\/a><\/td>"); document.writeln(" <td><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq3")%>&&Site=描述&&Menu=yes\" title='点击马上咨询'><%=rs("kf3")%><\/a><\/td>"); document.writeln(" <\/tr>"); document.writeln(" <tr>"); document.writeln(" <td align=\"center\"><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq3")%>&&Site=描述&&Menu=yes\"><img border=\"0\" "); document.writeln(" src=\"http:\/\/wpa.qq.com\/pa?p=1:<%=rs("qq3")%>:10\" \/><\/a><\/td>"); document.writeln(" <td><a target=\"_blank\" href=\"tencent:\/\/message\/?uin=<%=rs("qq3")%>&&Site=描述&&Menu=yes\" title='点击马上咨询'><%=rs("kf3")%><\/a><\/td>"); document.writeln(" <\/tr>"); <% end if %> document.writeln("<\/table>") document.writeln("</LI>"); document.writeln(" </UL>"); document.writeln("<DIV class=\"close\"></DIV>"); document.writeln("</DIV>"); document.writeln("<!--中间结束-->"); document.writeln(""); document.writeln("<DIV class=bottom></DIV>"); document.writeln(""); document.writeln("</DIV>"); document.writeln(" </div></div>"); document.writeln("<div style=\'float:right;width:24px;margin:9px 0 0 0;border: 0px;\'><img id=menutop onMouseOver=\"javascript:ChangeMenu('RightMenu',160,500)\" border=0 height=100 src=img/kefu.gif width=24></div>"); document.writeln(" </div></div>") var QuickScrollYLast=0; var QuickMenu=document.getElementById("QuickMenu") window.setInterval("LoadMenu()",1); function LoadMenu(){ var QuickScrollYDefault; if(document.documentElement&&document.documentElement.scrollTop){ QuickScrollYDefault=document.documentElement.scrollTop; }else if(document.body){ QuickScrollYDefault=document.body.scrollTop; }else{ } QuickPercent=.1*(QuickScrollYDefault-QuickScrollYLast); if(QuickPercent>0){ QuickPercent=Math.ceil(QuickPercent); }else{ QuickPercent=Math.floor(QuickPercent); } QuickMenu.style.top=parseInt(QuickMenu.style.top)+QuickPercent+"px"; QuickScrollYLast=QuickScrollYLast+QuickPercent; } var MenuX; var MenuY; var MenuCloseX; var MenuCloseY; function ChangeMenu(id,menuwidth,menuheight){ clearInterval(MenuX); clearInterval(MenuY); clearInterval(MenuCloseX); clearInterval(MenuCloseY); var o = document.getElementById(id); if(o.style.display == "none"){ o.style.display = "block"; o.style.width = "1px"; o.style.height = "1px"; MenuX = setInterval(function(){menuopenx(o,menuwidth,menuheight)},30); document.getElementById("menutop").src="img/close.gif"; }else{ document.getElementById("menutop").src="img/kefu.gif"; MenuCloseY = setInterval(function(){menuclosex(o)},30); } } function menuopenx(o,x,y){/*--打开x--*/ var menucx = parseInt(o.style.width); if(menucx < x){ o.style.width = (menucx + Math.ceil((x-menucx)/5)) +"px"; }else{ clearInterval(MenuX); //MenuY = setInterval(function(){menuopeny(o,y)},30); } var menucy = parseInt(o.style.height); if(menucy < y){ o.style.height = (menucy + Math.ceil((y-menucy)/5)) +"px"; }else{ clearInterval(MenuY); } } function menuopeny(o,y){/*--打开y--*/ var menucy = parseInt(o.style.height); if(menucy < y){ o.style.height = (menucy + Math.ceil((y-menucy)/5)) +"px"; }else{ clearInterval(MenuY); } } function menuclosex(o){/*--打开x--*/ var menucx = parseInt(o.style.width); if(menucx > 0){ o.style.width = (menucx - Math.ceil(menucx/5)) +"px"; }else{ clearInterval(MenuCloseX); //MenuCloseX = setInterval(function(){menuclosey(o)},30); } var menucy = parseInt(o.style.height); if(menucy > 0){ o.style.height = (menucy - Math.ceil(menucy/5)) +"px"; }else{ clearInterval(MenuCloseY); o.style.display = "none"; } } function menuclosey(o){/*--打开y--*/ var menucy = parseInt(o.style.height); if(menucy > 0){ o.style.height = (menucy - Math.ceil(menucy/5)) +"px"; }else{ clearInterval(MenuCloseY); o.style.display = "none"; } } </SCRIPT>
百度流量统计代码:
<script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F583f7995904af912a3a96d267af2d14c' type='text/javascript'%3E%3C/script%3E")); </script>
这个需求是不合理的或者你没有描述清楚。
什么叫做把统计代码插入QQ客服中?你当前的页面已经包含QQ客服了啊,不可能单独统计到QQ客服的,因为你QQ客服又不是单独的一页
大哥,你的代码展不开啊!
写上代码了。。。