在网页右侧悬浮QQ客服

var online=new Array();
if (!document.layers)
document.write('<div id=divStayTopLeft style=position:absolute>');
document.write('<table cellSpacing="0" cellPadding="0" width="110" border="0" id="qqtab">');
document.write('    <tr>');
document.write('      <td width="110" onclick="if(document.all.qqtab.style.display==\'none\'){document.all.qqtab.style.display=\'\'} else {document.all.qqtab.style.display=\'none\'}"><img src="http://www.54kfqq.com/User/images/qq/skin/4/top.gif" border="0"></td>');
document.write('    </tr>');
document.write('    <tr id="qqstab">');
document.write('      <td valign="middle" align="center" background="http://www.54kfqq.com/User/images/qq/skin/4/middle.gif">');
document.write('<table border="0" width="90" cellSpacing="0" cellPadding="0">');
document.write(' <tr>');
document.write('    <td width="90" height="5" border="0" colspan="2"></td>');
document.write(' </tr>');
document.write(' <tr>');
if (online[0]==0)
{
    document.write('    <td width="25" height="29" valign="middle" align="center">');
    document.write('<img src="http://www.54kfqq.com/User/images/qqface/30_f.gif" border="0" hspace="3">');
    document.write('    </td>');
    document.write('    <td width="65" height="29" valign="middle" align="left">');
    document.write('<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=553804580&amp;Site=飞讯网络&amp;Menu=yes" target="blank"><font style="font-size:12px;TEXT-DECORATION:none;color:#000000;">售后服务</font></a><br>');
    document.write('    </td>');
}
else
{
    document.write('    <td width="25" height="27" valign="middle" align="center">');
    document.write('<img src="http://www.54kfqq.com/User/images/qqface/30_m.gif" border="0" hspace="3">');
    document.write('    </td>');
    document.write('    <td width="65" height="27" valign="middle" align="left">');
    document.write('<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=553804580&amp;Site=飞讯网络&amp;Menu=yes" target="blank"><font style="font-size:12px;TEXT-DECORATION:none;color:#000000;">售后服务</font></a><br>');
    document.write('    </td>');
}
document.write(' </tr>');
document.write(' <tr>');
if (online[1]==0)
{
    document.write('    <td width="25" height="29" valign="middle" align="center">');
    document.write('<img src="http://www.54kfqq.com/User/images/qqface/1_f.gif" border="0" hspace="3">');
    document.write('    </td>');
    document.write('    <td width="65" height="29" valign="middle" align="left">');
    document.write('<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=997050169&amp;Site=飞讯网络&amp;Menu=yes" target="blank"><font style="font-size:12px;TEXT-DECORATION:none;color:#000000;">叶子</font></a><br>');
    document.write('    </td>');
}
else
{
    document.write('    <td width="25" height="27" valign="middle" align="center">');
    document.write('<img src="http://www.54kfqq.com/User/images/qqface/1_m.gif" border="0" hspace="3">');
    document.write('    </td>');
    document.write('    <td width="65" height="27" valign="middle" align="left">');
    document.write('<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=997050169&amp;Site=飞讯网络&amp;Menu=yes" target="blank"><font style="font-size:12px;TEXT-DECORATION:none;color:#000000;">叶子</font></a><br>');
    document.write('    </td>');
}
document.write(' </tr>');
document.write(' <tr>');
if (online[2]==0)
{
    document.write('    <td width="25" height="29" valign="middle" align="center">');
    document.write('<img src="http://www.54kfqq.com/User/images/qqface/1_f.gif" border="0" hspace="3">');
    document.write('    </td>');
    document.write('    <td width="65" height="29" valign="middle" align="left">');
    document.write('<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=1046302588&amp;Site=飞讯网络&amp;Menu=yes" target="blank"><font style="font-size:12px;TEXT-DECORATION:none;color:#000000;">叶子</font></a><br>');
    document.write('    </td>');
}
else
{
    document.write('    <td width="25" height="27" valign="middle" align="center">');
    document.write('<img src="http://www.54kfqq.com/User/images/qqface/1_m.gif" border="0" hspace="3">');
    document.write('    </td>');
    document.write('    <td width="65" height="27" valign="middle" align="left">');
    document.write('<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=1046302588&amp;Site=飞讯网络&amp;Menu=yes" target="blank"><font style="font-size:12px;TEXT-DECORATION:none;color:#000000;">叶子</font></a><br>');
    document.write('    </td>');
}
document.write(' </tr>');
document.write('</table>');
document.write('</td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('<td width="110"><a href="mes.asp" ><img src="images/bottom.gif" border="0"></a></td>');
document.write('    </tr>');
document.write('</table>');
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function scrollqq()
{
var posXqq,posYqq;
if (window.innerHeight)
{
posXqq=window.pageXOffset;
posYqq=window.pageYOffset;
   }
   else if (document.documentElement && document.documentElement.scrollTop)
      {
    posXqq=document.documentElement.scrollLeft;
    posYqq=document.documentElement.scrollTop;
    }
    else if (document.body)
      {
    posXqq=document.body.scrollLeft;
    posYqq=document.body.scrollTop;
      }
     var divStayTopLeft=document.getElementById("divStayTopLeft");
    divStayTopLeft.style.top=(posYqq+400-200)+"px";
divStayTopLeft.style.left=(posXqq+screen.width-131)+"px";
setTimeout("scrollqq()",500);
    }
      scrollqq();

posted @ 2009-07-05 01:15  编程小小生  阅读(1179)  评论(0编辑  收藏  举报