| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1201 人关注过本帖
标题:如何将浮动的QQ客服居右显示?怎么改请求帮助,谢谢!
只看楼主 加入收藏
ahyys
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2007-6-5
收藏
 问题点数:0 回复次数:3 
如何将浮动的QQ客服居右显示?怎么改请求帮助,谢谢!
document.writeln("<html>");
document.writeln("");
document.writeln("<head>");
document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
document.writeln("<title>网页特效观止|腾讯QQ网页在线客服,随网页滚动条上下移动的效果一</title>");
document.writeln("");
document.writeln("</head>");
document.writeln("<body>");
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%\"> </TD></TR></TBODY></TABLE></DIV>");
document.writeln("<SCRIPT language=javascript>");
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("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("            <a onclick=\"CloseQQ()\" href=\"javascript:;\" shape=\"circle\" coords=\"91,16,12\">");
document.writeln("            <img height=\"34\" src=\"images/QQimag/qq_top.gif\" width=\"109\" usemap=\"#Map\" border=\"0\"></a></td>");
document.writeln("      </tr>");
document.writeln("        <tr>");
document.writeln("            <td width=\"6\"><img height=\"120\" src=\"images/QQimag/qq_life.gif\" width=\"6\"></td>");
document.writeln("          <td valign=\"top\" width=\"96\" background=\"images/QQimag/qq_bg.gif\">");
document.writeln("          <table cellspacing=\"0\" cellpadding=\"0\" width=\"90\" align=\"center\" border=\"0\">");
document.writeln("                <tr>");
document.writeln("                    <td height=\"30\">");
document.writeln("                    <table cellspacing=\"0\" cellpadding=\"0\" width=\"90\" border=\"0\">");
document.writeln("                        <tr>");
document.writeln("                            <td>");
document.writeln("                            <img height=\"13\" src=\"images/QQimag/qq_ico1.gif\" width=\"16\"><span class=\"font_12\"> ");
document.writeln("                            <span style=\"font-size: 9pt\">客户服务</span></span></td>");
document.writeln("                      </tr>");
document.writeln("                    </table>");
document.writeln("                    </td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                    <td>");
document.writeln("                    <table border=\"0\" width=\"100%\" cellpadding=\"2\" id=\"table47\">");
document.writeln("                        <tr>");
document.writeln("                            <td width=\"15\" valign=\"top\" height=\"23\">");
document.writeln("                            <img border=\"0\" src=\"images/QQimag/qq_v01.gif\" width=\"16\" height=\"16\"></td>");
document.writeln("                          <td valign=\"bottom\"><script>document.write(\"<a target=blank href=tencent://message/?uin=236206579&Site=网页特效观止&Menu=yes><img border=0 SRC=http://wpa. alt=[专家咨询]></a>\");</script\></td>");
document.writeln("                        </tr>");
document.writeln("                    </table>");
document.writeln("                    </td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                    <td></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                    <td>");
document.writeln("                    <table border=\"0\" width=\"100%\" cellpadding=\"2\" id=\"table47\">");
document.writeln("                        <tr>");
document.writeln("                            <td width=\"15\" valign=\"top\" height=\"23\">");
document.writeln("                            <img border=\"0\" src=\"images/QQimag/qq_v01.gif\" width=\"16\" height=\"16\"></td>");
document.writeln("                          <td valign=\"bottom\"><script>document.write(\"<a target=blank href=tencent://message/?uin=12486831&Site=网页特效观止&Menu=yes><img border=0 SRC=http://wpa. alt=[专家咨询]></a>\");</script\></td>");
document.writeln("                        </tr>");
document.writeln("                    </table>");
document.writeln("                    </td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                    <td></td>");
document.writeln("                </tr>");
document.writeln("            </table>");
document.writeln("            </td>");
document.writeln("            <td width=\"7\"><img height=\"120\" src=\"images/QQimag/qq_right.gif\" width=\"7\"></td>");
document.writeln("      </tr>");
document.writeln("        <tr>");
document.writeln("            <td colspan=\"3\">");
document.writeln("            <img height=\"30\" src=\"images/QQimag/qq_bottom1.gif\" width=\"109\"></td>");
document.writeln("      </tr>");
document.writeln("        <tr>");
document.writeln("            <td colspan=\"3\">");
document.writeln("            <img height=\"33\" src=\"images/QQimag/qq_logo.gif\" width=\"109\"></td>");
document.writeln("      </tr>");
document.writeln("    </table>");
document.writeln("</div>");
document.writeln("<script 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 = 95;");
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.left=x;this.style.top=y;};");
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+379,30);");
document.writeln(" stayTopLeft();");
document.writeln("}");
document.writeln("FloatTop();");
document.writeln("</script\>");
document.writeln("<!--End: QQ在线客服 -->");
document.writeln("");
document.writeln("</body>");
document.writeln("");
document.writeln("</html>");
搜索更多相关主题的帖子: 请求 客服 
2010-08-22 08:16
zmh886
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:12
帖 子:238
专家分:1305
注 册:2010-6-2
收藏
得分:0 
你这个好像就是居右的?

http://www./
2010-08-25 18:49
pigzee
Rank: 2
等 级:论坛游民
帖 子:20
专家分:69
注 册:2010-3-30
收藏
得分:0 
以后用with(document.writeln)吧
2010-09-21 13:19
gulimeksoft
Rank: 4
等 级:业余侠客
威 望:4
帖 子:53
专家分:208
注 册:2010-8-5
收藏
得分:0 
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.sP(document.body.scrollLeft+document.body.offsetWidth-125, ftlObj.y);");
中的document.body.scrollLeft+document.body.offsetWidth-125
不好意思,我不知道Left是右还是左
2010-09-21 17:06
快速回复:如何将浮动的QQ客服居右显示?怎么改请求帮助,谢谢!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018825 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved