蓝色背景右侧悬浮在线客服代码

成都落户 2019-11-22 166 阅读

特效描述:jquery实现 右侧悬浮 在线客服特效,jquery实现右侧悬浮在线客服特效

代码部署教程

1. 引入CSS

<link rel="stylesheet" href="static/css/base.css" />

<link rel="stylesheet" href="static/css/base.css" />

2. 引入JS

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

3. HTML代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title></title>
</head>
<body style=" height:2000px;">
<div id="cus_ser">
<div class="cus_ser_">
<div class="title"></div>
<ul>
<li id="zqq"><a href="http://www.cxvn.com/wpa/qunwpa?idkey=6fcb83942dc3630777ae7745bd5093a1a5917f915f4e95cfc498633379ebfbb4" target="_blank">123456</a></li>
<li id="zphone">000000000</li>
<li id="wb"><a href="http://cxvn.com/" target="_blank">腾讯微博</a>&nbsp;&nbsp;<a href="http://cxvn.com/" target="_blank">新浪微博</a></li>
</ul>
</div>
<span class="close"><img src="static/images/icon_close.png" /></span> </div>
<script>
$("#cus_ser .close").click(function() {
$("#cus_ser").css({
display: 'none'
});
})
$("#cus_ser").mouseover(function() {
$(this).stop();
$(this).animate({
width: 165
},
400, 'swing');
})
$("#cus_ser").mouseout(function() {
$("#cus_ser").stop();
$("#cus_ser").animate({
width: 32
},
400, 'swing');
})
</script>
<div style="text-align:center;clear:both">
</div>
</body>
</html>

演示地址下载地址

最新游戏