
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/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery橘红色右侧在线客服代码 - 网页模板</title>
<link href="css/zzsc.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script>
$(function() {
// 悬浮窗口
$(".yb_conct").hover(function() {
$(".yb_conct").css("right", "5px");
$(".yb_bar .yb_ercode").css('height', '200px');
}, function() {
$(".yb_conct").css("right", "-127px");
$(".yb_bar .yb_ercode").css('height', '53px');
});
// 返回顶部
$(".yb_top").click(function() {
$("html,body").animate({
'scrollTop': '0px'
}, 300)
});
});
</script>
</head>
<body>
<div class="yb_conct">
<div class="yb_bar">
<ul>
<li class="yb_top">返回顶部</li>
<li class="yb_phone">4000-000-00</li>
<li class="yb_QQ">
<a target="_blank" href="" title="即刻发送您的需求">在线咨询</a>
</li>
<li class="yb_ercode" style="height:53px;">微信二维码 <br>
<img class="hd_qr" src="images/weixin.jpg" width="125" alt="关注你附近"> </li>
</ul>
</div>
</div>
</body>
</html>
欢迎转载,但请注明出处:https://www.sucaipro.com/sucai/127.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69972152/viewspace-2687138/ ,如需转载,请注明出处,否则将追究法律责任。