软件教程

一个实用的漂浮QQ客服代码

来源: 本站    类别: 软件教程    日期: 2016/9/1

 

<html>
<head>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">

<title>网页特效 网页右侧漂浮的QQ客服 站长特效网欢迎您。</title>
</head>
<body>

<DIV id="divStay" style="POSITION: absolute">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
  <TR>
    <TD vAlign="top" width="7%"> </TD>
  </TR>
</TABLE>
</DIV>
<script language=javascript>
function picsize(obj,MaxWidth){
  img=new Image();
  img.src=obj.src;
  if (img.width>MaxWidth)
  {
    return MaxWidth;
  }
  else
  {
    return img.width;
  }
}//
function CloseQQ()
{
www_zzjs_net.style.display="none";
return true;
}
var online= new Array();
</script>
<div id="www_zzjs_net" style="POSITION: absolute">
 <table cellspacing="0" cellpadding="0" width="109" border="0">
  <tr>
   <td colspan="3">
   <a onclick="CloseQQ()" href="javascript:;" shape="circle" coords="91,16,12">
   <img height="34" src="/img/qq_top_20100810.gif" width="109" usemap="#Map" border="0"></a></td>
  </tr>
  <tr>
   <td width="6"><img height="100" src="/img/qq_life_20100810.gif" width="6"></td>
   <td valign="top" width="96" background="sto/qq_bg.gif">
   <table cellspacing="0" cellpadding="0" width="90" align="center" border="0">
    <tr>
     <td height="30">
     <table cellspacing="0" cellpadding="0" width="90" border="0">
      <tr>
       <td align="center">
       <img height="13" src="/img/qq_ico_20100810.gif" width="16">
       <span style="font-size: 9pt">客户服务</span></td>
      </tr>
     </table>
     </td>
    </tr>
    <tr>
     <td>
     <table border="0" width="100%" cellpadding="2" id="table47">
      <tr>
       <td width="15" valign="top" height="23">
       <img border="0" src="/img/qq_v_20100810.gif" width="16" height="16"></td>
       <td valign="bottom"><script>document.write("<a target=blank href=tencent://message/?uin=81447932&Site=网页特效&Menu=yes style=font-size:9pt>81447932</a>");</script></td>
      </tr>
     </table>
     </td>
    </tr>
    <tr>
     <td></td>
    </tr>
    <tr>
     <td>
     <table border="0" width="100%" cellpadding="2" id="table47">
      <tr>
       <td width="15" valign="top" height="23">
       <img border="0" src="/img/qq_n_20100810.gif" width="16" height="16"></td>
       <td valign="bottom"><script>document.write("<a target=blank href=tencent://message/?uin=81447932&Site=网页特效&Menu=yes style=font-size:9pt>81447932</a>");</script></td>
      </tr>
     </table>
     </td>
    </tr>
    <tr>
     <td></td>
    </tr>
   </table>
   </td>
   <td width="7"><img height="100" src="/img/qq_right_20100810.gif" width="7"></td>
  </tr>
  <tr>
   <td colspan="3">
   <img height="30" src="/img/qq_bottom_20100810.gif" width="109"></td>
  </tr>
  <tr>
   <td colspan="3">
   <img height="33" src="/img/qq_logo_20100810.gif" width="109"></td>
  </tr>
 </table>
</div>
<script type="text/javascript">
function FloatTop()
{
 var startX1 =document.body.offsetWidth-125 ,startY1 = 5;
 var startX2 =0,startY2 = 95;
 var ns = (navigator.appName.indexOf("Netscape") != -1);
 var d = document;
 function ml(id,startX,startY)
 {
  var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
  if(d.layers)el.style=el;
  el.sP=function(x,y){this.style.left=x;this.style.top=y;};
  el.x = startX;
  el.y = startY;
  return el;
 }
 window.stayTopLeft=function()
 {
  var pY = ns ? pageYOffset : document.body.scrollTop;
  ftlObj.y += (pY + startY1 - ftlObj.y)/8;
  ftlObj1.y += (pY + startY2 - ftlObj1.y)/8;
  ftlObj.sP(document.body.scrollLeft+document.body.offsetWidth-125, ftlObj.y);
  ftlObj1.sP(ftlObj1.x, ftlObj1.y);
  setTimeout("stayTopLeft()", 30);
 }
//  ftlObj = ml("divStay",document.body.scrollLeft+document.body.offsetWidth-125,0);
//  ftlObj1 = ml("www_zzjs_net",0,30);
 ftlObj = ml("divStay",(document.body.scrollLeft+document.body.offsetWidth)/2+379,0);
 ftlObj1 = ml("www_zzjs_net",(document.body.scrollLeft+document.body.offsetWidth)/2+379,30);
 stayTopLeft();
}
FloatTop();
</script>
<br
</body>
</html>


相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com