我是高中毕业学的IT,现在刚上班,刚到公司老总就让我负责项目,我要负责在线客服和群组聊天,我以前在培训的时候没有接触过客服聊天,我不想在这经济危机中失去这份工作。希望有那位高手能给予我帮助,小的感激不尽。

解决方案 »

  1.   

    我们是要自己做一个在线客服,而不是在网页上嵌套一段代码。不知道谁有源代码,能给我发一份。([email protected]
      

  2.   

    一般别人不会提供这种源代码到网上的,你可以写傻瓜点的,就是用Ajax实现一下,大概可以顶个50没什么问题!
      

  3.   

    把下面代码保存为.js的,放在目录下面直接托在你网页的某个位置即可。不托就写一下<script src="qq.js" type="text/javascript"></script>document.writeln("<style type=\"text\/css\">");
    document.writeln("        .style1");
    document.writeln("        {");
    document.writeln("            width: 10px;");
    document.writeln("        }");
    document.writeln("    <\/style>");
    document.writeln("<div id=\"divstay\" style=\"POSITION: absolute\">");
    document.writeln("<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">");
    document.writeln("<tbody>");
    document.writeln("<tr>");
    document.writeln("<td valign=\"top\" width=\"7%\">&nbsp;<\/td><\/tr><\/tbody><\/table><\/div>");
    document.writeln("<script language=\"javascript\" type=\"text\/ecmascript\">");
    document.writeln("function picsize(obj,MaxWidth){");
    document.writeln("  img=new Image();");
    document.writeln("  img.src=obj.src;");
    document.writeln("  if (img.width>MaxWidth)");
    document.writeln("  {");
    document.writeln("    return MaxWidth;");
    document.writeln("  }");
    document.writeln("  else");
    document.writeln("  {");
    document.writeln("    return img.width;");
    document.writeln("  }");
    document.writeln("}");
    document.writeln("function CloseQQ()");
    document.writeln("{");
    document.writeln("divStayTopleft.style.display=\"none\";");
    document.writeln("return true;");
    document.writeln("}");
    document.writeln("<\/script>");
    document.writeln(" <script language=\"javascript\" type=\"text\/javascript\"> ");
    document.writeln("var online= new Array(); ");
    document.writeln("<\/script> ");
    document.writeln("<div id=\"divStayTopleft\" style=\"POSITION: absolute\">");
    document.writeln("<table cellspacing=\"0\" cellpadding=\"0\" width=\"109\" border=\"0\">");
    document.writeln("<tr>");
    document.writeln("    <td colspan=\"3\">");
    document.writeln("        <img src=\"Img\/kefu.gif\" width=\"109\" usemap=\"#Map\" border=\"0\" ");
    document.writeln("            style=\"height: 60px\"><\/td>");
    document.writeln(" <\/tr>");
    document.writeln("<tr>");
    document.writeln("    <td colspan=\"3\"><a onclick=\"CloseQQ();\" href=\"javascript:;\" shape=\"circle\" coords=\"91,16,12\">");
    document.writeln("        <img height=\"40\" src=\"Images\/top.gif\" width=\"109\" usemap=\"#Map\" border=\"0\"><\/a><\/td>");
    document.writeln(" <\/tr>");
    document.writeln("<tr>");
    document.writeln("    <td width=\"7\"><img height=\"186\" src=\"Images\/left.gif\" width=\"7\"><\/td>");
    document.writeln("    <td valign=\"top\" width=\"96\"  bgcolor=\"#FFFFFF\">");
    document.writeln("    <div>");
    document.writeln("    <table style=\"width:93px; height: 186px;\" border=\"0\">");
    document.writeln("<script language=\"javascript\" type=\"text\/javascript\" src=\"http:\/\/webpresence.qq.com\/getonline?Type=1&372114539:397394425;44665521;569875456;511370540;511370541\"><\/script> ");
    document.writeln("    <tr><td class=\"style1\">");
    document.writeln("        <img alt=\"\" src=\"Img\/1.gif\" \/><\/td><td style=\"font-size: small; color: #008080;\">");
    document.writeln("        <script language=\"javascript\" type=\"text\/javascript\">");
    document.writeln("        if(online[0]==0)");
    document.writeln("        document.write(\" <a class=\'qqb\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=372114539&Site=在线咨询&Menu=no\' title=\'客服不在线,请留言\'>372114539<\/a>\"); ");
    document.writeln("        else");
    document.writeln("        document.write(\" <a class=\'qqa\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=372114539&Site=在线咨询&Menu=no\' title=\'在线即时交谈\'>372114539<\/a>\"); ");
    document.writeln("        <\/script><\/td><\/tr>");
    document.writeln("    <tr><td class=\"style1\">");
    document.writeln("        <img alt=\"\" src=\"Img\/4.gif\" \/><\/td><td style=\"font-size: small; color: #008080;\">");
    document.writeln("        <script language=\"javascript\" type=\"text\/javascript\">");
    document.writeln("        if(online[1]==0)");
    document.writeln("        document.write(\" <a class=\'qqb\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=397394425&Site=在线咨询&Menu=no\' title=\'客服不在线,请留言\'>397394425<\/a>\"); ");
    document.writeln("        else");
    document.writeln("        document.write(\" <a class=\'qqa\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=397394425&Site=在线咨询&Menu=no\' title=\'在线即时交谈\'>397394425<\/a>\"); ");
    document.writeln("        <\/script><\/td><\/tr>");
    document.writeln("        <tr><td class=\"style1\">");
    document.writeln("        <img alt=\"\" src=\"Img\/2.gif\" \/><\/td><td style=\"font-size: small; color: #008080;\">");
    document.writeln("        <script language=\"javascript\" type=\"text\/javascript\">");
    document.writeln("        if(online[2]==0)");
    document.writeln("        document.write(\" <a class=\'qqb\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=44665521&Site=在线咨询&Menu=no\' title=\'客服不在线,请留言\'>44665521<\/a>\"); ");
    document.writeln("        else");
    document.writeln("        document.write(\" <a class=\'qqa\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=44665521&Site=在线咨询&Menu=no\' title=\'在线即时交谈\'>44665521<\/a>\"); ");
    document.writeln("        <\/script><\/td><\/tr>");
      

  4.   

    document.writeln("        <tr><td class=\"style1\">");
    document.writeln("        <img alt=\"\" src=\"Img\/4.gif\" \/><\/td><td style=\"font-size: small; color: #008080;\">");
    document.writeln("        <script language=\"javascript\" type=\"text\/javascript\">");
    document.writeln("        if(online[3]==0)");
    document.writeln("        document.write(\" <a class=\'qqb\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=569875456&Site=在线咨询&Menu=no\' title=\'客服不在线,请留言\'>569875456<\/a>\"); ");
    document.writeln("        else");
    document.writeln("        document.write(\" <a class=\'qqa\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=569875456&Site=在线咨询&Menu=no\' title=\'在线即时交谈\'>569875456<\/a>\"); ");
    document.writeln("        <\/script><\/td><\/tr>");
    document.writeln("        <tr><td class=\"style1\">");
    document.writeln("        <img alt=\"\" src=\"Img\/5.gif\" \/><\/td><td style=\"font-size: small; color: #008080;\">");
    document.writeln("        <script language=\"javascript\" type=\"text\/javascript\">");
    document.writeln("        if(online[4]==0)");
    document.writeln("        document.write(\" <a class=\'qqb\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=511370540&Site=在线咨询&Menu=no\' title=\'客服不在线,请留言\'>511370540<\/a>\"); ");
    document.writeln("        else");
    document.writeln("        document.write(\" <a class=\'qqa\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=511370540&Site=在线咨询&Menu=no\' title=\'在线即时交谈\'>511370540<\/a>\"); ");
    document.writeln("        <\/script><\/td><\/tr>");
    document.writeln("        <tr><td class=\"style1\">");
    document.writeln("        <img alt=\"\" src=\"Img\/6.gif\" \/><\/td><td style=\"font-size: small; color: #008080;\">");
    document.writeln("        <script language=\"javascript\" type=\"text\/javascript\">");
    document.writeln("        if(online[5]==0)");
    document.writeln("        document.write(\" <a class=\'qqb\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=511370541&Site=在线咨询&Menu=no\' title=\'客服不在线,请留言\'>511370541<\/a>\"); ");
    document.writeln("        else");
    document.writeln("        document.write(\" <a class=\'qqa\' target=blank href=\'http:\/\/wpa.qq.com\/msgrd?V=1&Uin=511370541&Site=在线咨询&Menu=no\' title=\'在线即时交谈\'>511370541<\/a>\"); ");
    document.writeln("        <\/script><\/td><\/tr>");
    document.writeln("    <\/table>");
    document.writeln("    <\/div>");
    document.writeln("    <\/td>");
    document.writeln("    <td width=\"7\"><img height=\"186\" src=\"Images\/right.gif\" width=\"7\"><\/td>");
    document.writeln("<\/tr>");
    document.writeln("<tr>");
    document.writeln("    <td colspan=3><img src=\"Images\/down.gif\" width=\"109\" style=\"height: 9px\"><\/td>");
    document.writeln("<\/tr>");
    document.writeln("<tr>");
    document.writeln("<td colspan=\"3\">");
    document.writeln("        <img src=\"Img\/down.gif\" useMap=\"#map\" border=\"0\" ");
    document.writeln("            style=\"height: 58px; width: 109px;\"><\/td>");
    document.writeln("<\/tr>");
    document.writeln("<\/table>");
    document.writeln("<\/div>");
    document.writeln("<script language=\"javascript\" type=\"text\/javascript\">");
    document.writeln("function FloatTop()");
    document.writeln("{");
    document.writeln(" var startX1 =document.body.offsetWidth-125,startY1 = 5;");
    document.writeln(" var startX2 =0,startY2 =360;");
    document.writeln(" var ns = (navigator.appName.indexOf(\"Netscape\") != -1);");
    document.writeln(" var d = document;");
    document.writeln(" function ml(id,startX,startY)");
    document.writeln(" {");
    document.writeln("  var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];");
    document.writeln("  if(d.layers)el.style=el;");
    document.writeln("  el.sP=function(x,y){this.style.right=20;this.style.top=document.documentElement.scrollTop+180;};");
    document.writeln("  el.x = startX;");
    document.writeln("  el.y = startY;");
    document.writeln("  return el;");
    document.writeln(" }");
    document.writeln(" window.stayTopLeft=function()");
    document.writeln(" {");
    document.writeln("  var pY = ns ? pageYOffset: document.body.scrollTop;");
    document.writeln("  ftlObj.y += (pY + startY1 - ftlObj.y)\/8;");
    document.writeln("  ftlObj1.y += (pY + startY2 - ftlObj1.y)\/8;");
    document.writeln("  ftlObj.sP(document.body.scrollLeft+document.body.offsetWidth-125, ftlObj.y);");
    document.writeln("  ftlObj1.sP(ftlObj1.x, ftlObj1.y);");
    document.writeln("  setTimeout(\"stayTopLeft()\", 30);");
    document.writeln(" }");
    document.writeln("\/\/ftlObj = ml(\"divStay\",document.body.scrollLeft+document.body.offsetWidth-125,0);");
    document.writeln(" \/\/ftlObj1 = ml(\"divStayTopLeft\",0,30);");
    document.writeln(" ftlObj = ml(\"divStay\",(document.body.scrollLeft+document.body.offsetWidth)\/2+379,0);");
    document.writeln(" ftlObj1 = ml(\"divStayTopLeft\",(document.body.scrollLeft+document.body.offsetWidth)\/2+340,30);");
    document.writeln(" stayTopLeft();");
    document.writeln("}");
    document.writeln("FloatTop();");
    document.writeln("<\/script>")
      

  5.   

    http://www.aspqq.com/这里提供现成的ASP在线客服源代码.还有VB的呢,去看看.
      

  6.   

    PowerTalkBox,早点知道,就早省事了
      

  7.   

    http://powertalkbox.cnblogs.com,最新的东西,都会先发表到这
      

  8.   

    我最近也在找asp.net在线客服的代码,真是好难找啊,找到的代码在html页面就行,但是放到asp.net的页面一定要删除这行代码才行
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">不知道如何解决这样的问题,我希望有这样的源码的老鸟们伸出援助之手,在下先 谢了
      

  9.   

    www.dadakf.com/dadadn.asp
    有整套asp的在线客服源码, asp内容不多,改成.net就成.  js占大多数