简单常用好看的前端客服代码
编辑时间:2018-06-29 作者:金满斗 浏览量:1666 来源:原创

简单常用好看的前端客服代码

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>无标题</title>
    <style type="text/css">
        *{margin:0;padding:0;list-style:none;border:none 0;}
        html{background-image:url(about:blank);}
        body{font-size:12px;background:#fff;padding:50px 0;}
        .lanmu{width:94px;height:400px;position:fixed;right:2%;top:100px;}
        *html .lanmu{position:absolute;top:expression(document.documentElement.scrollTop+(this.noop||0)+document.documentElement.clientHeight*0.2);}
        .lanmu-content{height:400px;position:relative;}

        .kefu{width:94px;height:224px;background:url("http://img.zbird.cn/ww3/header/service_bg.gif") no-repeat;position:absolute;left:0;top:11px;}
        .kefu li{margin-top:7px;_margin-top:5px;zoom:1;}
        .kefu li a,.kefu li a img{display:block;margin:0 auto;}
        .top{width:13px;height:11px;display:block;position:absolute;right:5px;top:0;cursor:pointer;}
        .top-a{background:url("http://im1.zbird.cn/ww3/header/serviec_ico_min.gif") no-repeat;}
        .top-b{background:url("http://im0.zbird.cn/ww3/header/serviec_ico_max.gif") no-repeat;}

        .liji{width:28px;height:102px;position:absolute;right:0;top:11px;}

        .content{height:1500px;}
    </style>
</head>
<body>
    <div class="content">

    </div>
<div class="lanmu">
    <div class="lanmu-content">

        <span class="top top-a"> </span>
        
        <div class="kefu">
            <ul>
                <li><a href="#" title="" ><img src="http://im0.zbird.cn/ww3/header/serviec_logo.jpg" alt="" /></a></li>
                <li><a href="#" title="" ><img src="http://im0.zbird.cn/ww3/header/serviec_consultation.png" alt="" /></a></li>
                <li><a href="#" title="" ><img src="http://im0.zbird.cn/ww3/header/serviec_booking.gif" alt="" /></a></li>
                <li><a href="#" title="" ><img src="http://im0.zbird.cn/ww3/header/serviec_cert.gif" alt="" /></a></li>
                <li><a href="#" title="" ><img src="http://img.zbird.cn/ww3/header/serviec_order.gif" alt="" /></a></li>
            </ul>
        </div>

        <div class="liji" style="display:none;">
            <a href="" title="" ><img src="http://img.zbird.cn/ww3/header/serviec_min.png" alt="" /></a>
        </div>

    </div>
</div>


<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
    var cona = $(".lanmu-content span");
    cona.toggle(function(){
        $(".liji").show(0,function(){
            cona.addClass("top-b");
            $(".kefu").css("display","none");
        });
    },function(){
        $(".kefu").show(0,function(){
            cona.removeClass("top-b");
            $(".liji").css("display","none");
        });
    });
});
</script>



</body>
</html>


来说两句吧