左右悬浮可分组的网站QQ在线客服代码(可谓经典)

代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>左右悬浮可分组的网站QQ在线客服代码</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<style type="text/css">
.qqwid{width:142px;background-image:url(/jscss/demoimg/201011/qq_bg.gif);color:#000000;}
.qqwid a{text-decoration:none;}
.qqwid a:link{color:#000000;}
.qqwid a:visited{color:#000000;}
.qqwid a:hover{color:#FF0000;}
.qqwid a:active{color:#000000;}
.qqwid .qqnei{margin-left:5px;margin-right:5px;line-height:25px;}
.qqwid .qqnei img{margin-left:3px;margin-right:5px;vertical-align:middle;}
.qqwid td{font-size:12px;height:25px;line-height:25px;}
</style>
</head>
<body>
<div style="height:2000px;"></div>
<!--左漂浮-->
<div id="leftfu" name="leftfu" style="position:absolute;left:1px;top:125px;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width="10" border="0" cellspacing="0" cellpadding="0" id="leftmenu">
<tr>
<td><a href="#" onclick="window.open('http://#','','width=800,height=600,top=0,left=100,status=yes')">
<img src="/jscss/demoimg/201011/qq_Asall.jpg" border="0"></a></td>
</tr>
<tr>
<td><a target="_blank" href="http://sighttp.qq.com/authd?IDKEY=534e023a34d2ce9548a6e7e0f92cd59c2bd5c36a2f7f25d6"><img src="/jscss/demoimg/201011/qq_Online.jpg" border="0" ></a></td>
</tr>
<tr>
<td align="right"><a href="javascript:" onclick="javascript:divclose('leftmenu');"><img src="/jscss/demoimg/201011/close.jpg" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--左漂浮-->
<!--右漂浮-->
<div id="rightfu" name="rightfu" style="position:absolute;right:1px;top:125px;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div class="qqwid" id="showrightmenu_1" style="filter:alpha(opacity=80);z-index:1; display:none;" onmouseover="javascript:showrightmenuover(1);" onmouseout="javascript:showrightmenuout(1);">
<div><img src="/jscss/demoimg/201011/qq_top.gif"></div>
<div class="qqnei">
<table border="0" cellspacing="0" cellpadding="0" style="filter:alpha(opacity=86);">
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes" target="_blank">在线客服</a></td>
</tr>
</table>
</div>
<div><img src="/jscss/demoimg/201011/qq_bottom.gif" width="142" height="6"></div>
</div>
<div class="qqwid" id="showrightmenu_2" style="filter:alpha(opacity=80);z-index:1;margin-top:87px;display:none;" onmouseover="javascript:showrightmenuover(2);" onmouseout="javascript:showrightmenuout(2);">
<div><img src="/jscss/demoimg/201011/qq_top.png"></div>
<div class="qqnei">
<table border="0" cellspacing="0" cellpadding="0" style="filter:alpha(opacity=86);">
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
</table>
</div>
<div><img src="/jscss/demoimg/201011/qq_bottom.png" width="142" height="6"></div>
</div>
<div class="qqwid" id="showrightmenu_3" style="filter:alpha(opacity=80);z-index:1;margin-top:174px;display:none;" onmouseover="javascript:showrightmenuover(3);" onmouseout="javascript:showrightmenuout(3);">
<div><img src="/jscss/demoimg/201011/qq_top.png"></div>
<div class="qqnei">
<table border="0" cellspacing="0" cellpadding="0" style="filter:alpha(opacity=90);">
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
<tr>
<td><img src="http://wpa.qq.com/pa?p=1:539680:17" height="17" border="0" align="middle">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=539680&site=#&menu=yes">在线客服</a></td>
</tr>
</table>
</div>
<div><img src="/jscss/demoimg/201011/qq_bottom.png" width="142" height="6"></div>
</div>
</td>
<td valign="top">
<table width="10" border="0" cellspacing="0" cellpadding="0" id="rightmenu">
<tr>
<td><a href="javascript:" onmouseover="javascript:showrightmenuover(1);" onmouseout="javascript:showrightmenuout(1);">
<img src="/jscss/demoimg/201011/qq_Atuo.jpg" border="0"></a></td>
</tr>
<tr>
<td><a href="javascript:" onmouseover="javascript:showrightmenuover(2);" onmouseout="javascript:showrightmenuout(2);">
<img src="/jscss/demoimg/201011/qq_Adns.jpg" border="0" ></a></td>
</tr>
<tr>
<td><a href="javascript:" onmouseover="javascript:showrightmenuover(3);" onmouseout="javascript:showrightmenuout(3);">
<img src="/jscss/demoimg/201011/qq_Beian.jpg" border="0"></a></td>
</tr>
<tr>
<td align="left"><a href="javascript:" onclick="javascript:divclose('rightmenu');">
<img src="/jscss/demoimg/201011/close.jpg" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--右漂浮-->
<script event="fscommand()" for="eccoolad" type="text/javascript"></script>
<script type="text/javascript">
//leftfu.style.visibility='hidden';
//sorollDiv1.style.visibility='hidden';
var lastScrollY=0;
var setup=0.02
function heartBeat(){
diffY=document.documentElement.scrollTop;
percent=setup*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("leftfu").style.top=parseInt(document.getElementById("leftfu").style.top)+percent+"px";
document.getElementById("rightfu").style.top=parseInt(document.getElementById("rightfu").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
function divclose(name){
document.getElementById(name).style.visibility='hidden';
}
function showqqdivover(i)
{
document.getElementById("showqq"+i).style.display="block";
}
function showqqdivout(i)
{
document.getElementById("showqq"+i).style.display="none";
}
function showleftmenuover(id)
{
document.getElementById("showleftmenu_"+id).style.display="block";
}
function showleftmenuout(id)
{
document.getElementById("showleftmenu_"+id).style.display="none";
}
function showrightmenuover(id)
{
document.getElementById("showrightmenu_"+id).style.display="block";
}
function showrightmenuout(id)
{
document.getElementById("showrightmenu_"+id).style.display="none";
}
</script>
</body>
</html>

(0)

相关推荐

  • 左右悬浮可分组的网站QQ在线客服代码(可谓经典)

    复制代码 代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>左右悬浮可分组的网站

  • js实现浮动在网页右侧的简洁QQ在线客服代码

    本文实例讲述了js实现浮动在网页右侧的简洁QQ在线客服代码.分享给大家供大家参考.具体如下: 这是一个简洁版的QQ在线客服,其实重要的是这个JS函数,只要有了这个JS函数,实际上你完全可以写一个这样的在线客服,它是用JS+CSS去控制层的隐藏与展开.注意代码中的QQ号记着要改一下哦. 运行效果截图如下: 在线演示地址如下: http://demo.jb51.net/js/2015/js-float-qq-onlinefk-style-codes/ 具体代码如下: <!DOCTYPE html P

  • jquery实现漂浮在网页右侧的qq在线客服插件示例

    很实用的一款QQ在线客服代码,点击QQ图标,可直接与客服对话.具体实现代码如下: html页面: 复制代码 代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xht

  • jQuery实现仿QQ在线客服效果的滚动层代码

    本文实例讲述了jQuery实现仿QQ在线客服效果的滚动层代码.分享给大家供大家参考.具体如下: 这是一款jQuery滚动层,可以做成仿QQ在线客服,虽然效果有点生硬,但水平就这么高了,弹出层是挺实用的,期待大家有新的改进. 运行效果截图如下: 在线演示地址如下: http://demo.jb51.net/js/2015/jquery-f-qq-online-style-scroll-style-demo/ 具体代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD

  • 可浮动QQ在线客服

    复制代码 代码如下: (function(){ QQMenuInt=_QQMenuInt; moveQQmenu=_moveQQmenu; function _QQMenuInt(){ QQMenu.style.position="absolute"; QQMenu.style.display=""; if(parseInt(document.documentElement.offsetWidth)>1024){ QQMenuPosition.Left+=(p

  • 旺旺在线客服代码 旺旺客服代码生成器

    阿里旺旺官方给出了3中方式的在线旺旺的样式,方便大家能够在自己的网页上添加在线旺旺联系,我们一个一个的分析: 1. 代码: <a target="_blank" href="http://amos.alicdn.com/msg.aw?v=2&uid=jiaobenzhijia&site=cnalichn&s=10&charset=gbk" rel="external nofollow" ><img

  • 网页右侧悬浮滚动在线qq客服代码示例

    网页右侧悬浮滚动QQ在线客服代码 复制代码 代码如下: function myEvent(obj,ev,fn){ if (obj.attachEvent){  obj.attachEvent('on'+ev,fn); }else{  obj.addEventListener(ev,fn,false); };};function getbyClass(id,sClass){ var oParent = document.getElementById(id); var all = oParent.g

  • 百度HI QQ和MSN 阿里旺旺贸易通MSN在线客服在线聊天代码

    1.如何在网页上显示腾讯QQ在线洽谈? QQ在线咨询代码(qq在线交谈代码/qq在线客服代码/qq在线状态代码/qq在线客服代码) (将123456换成你的号码,site后面换成你的网站就可以了) <a target="blank" href="http://wpa.qq.com/msgrd?V=1&Uin=12345678&Site=快享&Menu=yes"><img border="0" SRC=ht

  • jQuery实现的网页左侧在线客服效果代码

    本文实例讲述了jQuery实现的网页左侧在线客服效果代码.分享给大家供大家参考,具体如下: 这是又一个网页上的在线客服代码,不错,可以用一下哦.与其它客服不一样的地方呢?无非是在网页左侧滑出,可对客服类型分组,又多了一个功能,哈哈. 运行效果截图如下: 在线演示地址如下: http://demo.jb51.net/js/2015/jquery-left-online-kf-demo/ 具体代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

  • jQuery实现右侧抽屉式在线客服功能

    我们先来看下实际运行效果图: 先给大家看下整体代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <met

随机推荐