注册
 找回密码
 注册
江西广告网
查看: 4693|回复: 37
打印 上一主题 下一主题

QQ在线客服代码,飘浮在右侧的QQ客服js特效演示

[复制链接]

该用户从未签到

1
跳转到指定楼层
发表于 2009-6-10 14:15:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x
本帖最后由 life 于 2009-6-10 14:24 编辑
  1. <html>

  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  4. <title>网页特效代码演示中心-QQ在线客服代码演示</title>

  5. </head>
  6. <body>
  7. <DIV id=divStay style="POSITION: absolute">
  8. <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  9.   <TBODY>
  10.   <TR>
  11.     <TD vAlign=top width="7%"> </TD></TR></TBODY></TABLE></DIV>
  12. <SCRIPT language=javascript>
  13. function picsize(obj,MaxWidth){
  14.   img=new Image();
  15.   img.src=obj.src;
  16.   if (img.width>MaxWidth)
  17.   {
  18.     return MaxWidth;
  19.   }
  20.   else
  21.   {
  22.     return img.width;
  23.   }
  24. }
  25. function CloseQQ()
  26. {
  27. divStayTopleft.style.display="none";
  28. return true;
  29. }
  30. var online= new Array();
  31. </SCRIPT>
  32. <div id="divStayTopleft" style="POSITION: absolute">
  33. <table cellspacing="0" cellpadding="0" width="109" border="0">
  34.   <tr>
  35.    <td colspan="3">
  36.    <a onclick="CloseQQ()" href="javascript:;" shape="circle" coords="91,16,12">
  37.    <img height="34" src="http://www.ad119.cn/adenter/qq/qq_top.gif" width="109" usemap="#Map" border="0"></a></td>
  38.   </tr>
  39.   <tr>
  40.    <td width="6"><img height="100" src="http://www.ad119.cn/adenter/qq/qq_life.gif" width="6"></td>
  41.    <td valign="top" width="96" background="http://www.ad119.cn/adenter/qq/qq_bg.gif">
  42.    <table cellspacing="0" cellpadding="0" width="90" align="center" border="0">
  43.     <tr>
  44.      <td height="30">
  45.      <table cellspacing="0" cellpadding="0" width="90" border="0">
  46.       <tr>
  47.        <td>
  48.        <img height="13" src="http://www.ad119.cn/adenter/qq/qq_ico1.gif" width="16"><span class="font_12">
  49.        <span style="font-size: 9pt">客户服务</span></span></td>
  50.       </tr>
  51.      </table>
  52.      </td>
  53.     </tr>
  54.     <tr>
  55.      <td>
  56.      <table border="0" width="100%" cellpadding="2" id="table47">
  57.       <tr>
  58.        <td width="15" valign="top" height="23">
  59.        <img border="0" src="http://www.ad119.cn/adenter/qq/qq_v01.gif" width="16" height="16"></td>
  60.        <td valign="bottom"><script>document.write("<a target=blank href=tencent://message/?uin=178010108&Site=江西广告网&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:327833233:10 alt=[江西广告网]></a>");</script></td>
  61.       </tr>
  62.      </table>
  63.      </td>
  64.     </tr>
  65.     <tr>
  66.      <td></td>
  67.     </tr>
  68.     <tr>
  69.      <td>
  70.      <table border="0" width="100%" cellpadding="2" id="table47">
  71.       <tr>
  72.        <td width="15" valign="top" height="23">
  73.        <img border="0" src="http://www.ad119.cn/adenter/qq/qq_n01.gif" width="16" height="16"></td>
  74.        <td valign="bottom"><script>document.write("<a target=blank href=tencent://message/?uin=251922268&Site=江西广告网&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:172905645:10 alt=[江西广告网]></a>");</script></td>
  75.       </tr>
  76.      </table>
  77.      </td>
  78.     </tr>
  79.     <tr>
  80.      <td></td>
  81.     </tr>
  82.    </table>
  83.    </td>
  84.    <td width="7"><img height="100" src="qq/qq_right.gif" width="7"></td>
  85.   </tr>
  86.   <tr>
  87.    <td colspan="3">
  88.    <img height="30" src="http://www.ad119.cn/adenter/qq/qq_bottom1.gif" width="109"></td>
  89.   </tr>
  90.   <tr>
  91.    <td colspan="3">
  92.    <img height="33" src="http://www.ad119.cn/adenter/qq/qq_logo.gif" width="109"></td>
  93.   </tr>
  94. </table>
  95. </div>
  96. <script type="text/javascript">
  97. function FloatTop()
  98. {
  99. var startX1 =document.body.offsetWidth-125 ,startY1 = 5;
  100. var startX2 =0,startY2 = 95;
  101. var ns = (navigator.appName.indexOf("Netscape") != -1);
  102. var d = document;
  103. function ml(id,startX,startY)
  104. {
  105.   var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
  106.   if(d.layers)el.style=el;
  107.   el.sP=function(x,y){this.style.left=x;this.style.top=y;};
  108.   el.x = startX;
  109.   el.y = startY;
  110.   return el;
  111. }
  112. window.stayTopLeft=function()
  113. {
  114.   var pY = ns ? pageYOffset : document.body.scrollTop;
  115.   ftlObj.y += (pY + startY1 - ftlObj.y)/8;
  116.   ftlObj1.y += (pY + startY2 - ftlObj1.y)/8;
  117.   ftlObj.sP(document.body.scrollLeft+document.body.offsetWidth-125, ftlObj.y);
  118.   ftlObj1.sP(ftlObj1.x, ftlObj1.y);
  119.   setTimeout("stayTopLeft()", 30);
  120. }
  121. //  ftlObj = ml("divStay",document.body.scrollLeft+document.body.offsetWidth-125,0);
  122. //  ftlObj1 = ml("divStayTopLeft",0,30);
  123. ftlObj = ml("divStay",(document.body.scrollLeft+document.body.offsetWidth)/2+379,0);
  124. ftlObj1 = ml("divStayTopLeft",(document.body.scrollLeft+document.body.offsetWidth)/2+379,30);
  125. stayTopLeft();
  126. }
  127. FloatTop();
  128. </script>
  129. <!--End: QQ在线客服 -->

  130. <p> </p>
  131. <p> </p>
  132. <p> </p>
  133. <p> </p>
  134. <p> </p>
  135. <p> </p>
  136. <p> </p>
  137. <p> </p>
  138. <p> </p>
  139. <p> </p>
  140. <p> </p>
  141. <p> </p>
  142. <p> </p>
  143. <p> </p>
  144. <p> </p>
  145. <p> </p>
  146. <p>  </p>
  147. <p> </p>
  148. <p> </p>
  149. <p> </p>
  150. <p> </p>
  151. <p> </p>
  152. <p> </p>
  153. <p> </p>
  154. <p> </p>
  155. <p> </p>
  156. <p> </p>
  157. <p>  </p>
  158. </body>

  159. </html>
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表