qq在线客服代码漂浮 支持滑动显示QQ客服

星宿怎么读 2019-11-22 143 阅读

特效描述:基于jQuery实现 鼠标滑过 显示在线客服,基于jQuery实现鼠标滑过显示在线客服代码

代码部署教程

1. 引入JS

<script type="text/javascript" src="http://static.b.qq.com/account/bizqq/js/wpa.js?type=1&kfuin=123456789&ws=www.cxvn.com&btn1=乐分享=2&a=8"></script>

<script type="text/javascript" src="http://static.b.qq.com/account/bizqq/js/wpa.js?type=1&kfuin=123456789&ws=www.cxvn.com&btn1=乐分享=2&a=8"></script>

<script type="text/javascript" src="http://static.b.qq.com/account/bizqq/js/wpa.js?type=1&kfuin=123456789&ws=www.cxvn.com&btn1=乐分享=2&a=8"></script>

<script type="text/javascript" src="http://static.b.qq.com/account/bizqq/js/wpa.js?type=1&kfuin=123456789&ws=www.cxvn.com&btn1=乐分享=2&a=8"></script>

<script type="text/javascript" src="http://static.b.qq.com/account/bizqq/js/wpa.js?type=1&kfuin=123456789&ws=www.cxvn.com&btn1=乐分享=2&a=8"></script>

<script type="text/javascript" src="http://static.b.qq.com/account/bizqq/js/wpa.js?type=1&kfuin=123456789&ws=www.cxvn.com&btn1=乐分享=2&a=8"></script>

2. HTML代码

<DIV>
<DIV id=newkefu_right class=newkefu><IMG id=newkefu_bar class=newkefu_bar
border=0 src="images/qq/kefu-right.png" width=33
height=168>
<DIV style="DISPLAY: none" id=group_pad class=newkefu_group>
<DIV class=qq_top><IMG src="images/qq/kefu-top.png"
width=140 height=28></DIV>
<div class="shouqian_mid">
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</li>
</ul>
</div>
<DIV class=midtop><IMG src="images/qq/kefu-midtop.png"
width=140 height=24></DIV>
<DIV class=shouhou_mid>
<DIV class=line><SPAN>24小时客服热线:<BR>
<STRONG>4006-000-000</STRONG></SPAN> <SPAN>企业QQ:<BR>
<STRONG>12345678</STRONG></SPAN> </DIV>
</DIV>
<DIV class=bottom><IMG src="images/qq/kefu-bottom.png"
width=140 height=7></DIV>
</DIV>
</DIV>
<DIV class=new_login_7 style="width:18px; height:430px;"></DIV>
</DIV>
<SCRIPT type=text/javascript>
$(function(){
/*
* -------------------------------------------------------------------------------------
* | key | description | default |
* |---------------|-----------------------------------------------|-------------------|
* | speed | 滚动的间隔毫秒数,数值越小,滚动越快。 | 500 |
* |---------------|-----------------------------------------------|-------------------|
* | offset | 距离滚动顶部的点数(pixels)。 | 0 |
* |---------------|-----------------------------------------------|-------------------|
* | relativeTo | 设置滚动的DIV靠上还是靠下,可以设置为"top"或"bottom" | top |
* |---------------|-----------------------------------------------|-------------------|
* | killSwitch | 开启和取消跟随滚动开关的元素ID,需要jQuery Cookie 插件支持 | "killSwitch" |
* |---------------|-----------------------------------------------|-------------------|
* | onText | 如果启用了跟随滚动,开关显示的文字。 | "Turn Slide Off" |
* |---------------|-----------------------------------------------|-------------------|
* | offText | 如果取消了跟随滚动,开关显示的文字。 | "Turn Slide On" |
* |---------------|-----------------------------------------------|-------------------|
* | delay | 控制滚动延时 | 0 |
* |---------------|-----------------------------------------------|-------------------|
* | container | 滚动范围设置DIV的ID | 框的直接父对象 |
* -------------------------------------------------------------------------------------
*/
$("#newkefu_right").scrollFollow({
speed:500,/* 移动速度 */
offset: 100
});
$("#newkefu_bar").hover(
function()/* 鼠标移入 */{
$("#group_pad").show("slow");
$("#newkefu_bar").attr("src","images/qq/kefu-left.png");
},
function()/* 鼠标移出 */{
$("#newkefu_right").hover(
function()/* 鼠标移入 */{
$("#group_pad").show("slow");
$("#newkefu_bar").attr("src","images/qq/kefu-left.png");
},
function()/* 鼠标移出 */{
$("#group_pad").hide("slow");
$("#newkefu_bar").attr("src","images/qq/kefu-right.png");
}
);
}
);
});
</SCRIPT>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>

演示地址下载地址

最新游戏