简洁右侧栏客服代码

简洁右侧栏客服代码

今天介绍一款客服代码,主要功能有微信、QQ、电话显示及返回顶部功能。

淘建站为您提供更多_其它特效_在线客服_顶部_客服,在此特别感谢您对我们的支持与厚爱!

查看演示

演示不了,点击反馈

加入收藏

下载 491 次

打赏作者

觉得不错,可打赏下作者

下载资源

免费共享

特别说明:本站资源来自网友发布分享,仅供学习与参考,请勿用于商业用途,若有侵权请联系删除(272966172@qq.com)。

HTML

首先我们在#service放置微信、QQ、电话及返回顶部四个按钮。

<div id="service">
    <ul>
        <li>
            <a href="javascript:void(0)" class="weixin_area">
                <img src="images/l02.png" width="47" height="49" class="shows" />
                <img src="images/a.png" width="57" height="49" class="hides" />
                <img src="images/weixin.jpg" width="145" class="weixin" style="display:none;margin:-100px 57px 0 0" />
            </a>
        </li>
        <li>
            <a href="http://wpa.qq.com/msgrd?v=3&uin=800022936&site=qq&menu=yes" target="_blank">
                <div class="hides" style="width:161px;display:none;" id="qq">
                    <div class="hides" id="p1">
                        <img src="images/ll04.png">
                    </div>
                    <div class="hides" id="p2"><span style="color:#FFF;font-size:13px">800022936</span>
                    </div>
                </div>
                <img src="images/l04.png" width="47" height="49" class="shows" />
            </a>
        </li>
        <li id="tel">
            <a href="javascript:void(0)">
                <div class="hides" style="width:161px;display:none;" id="tels">
                    <div class="hides" id="p1">
                        <img src="images/ll05.png">
                    </div>
                    <div class="hides" id="p3"><span style="color:#FFF;font-size:12px">0551-65371998</span>
                    </div>
                </div>
                <img src="images/l05.png" width="47" height="49" class="shows" />
            </a>
        </li>
        <li id="btn">
            <a id="top_btn">
                <div class="hides" style="width:161px;display:none">
                    <img src="images/ll06.png" width="161" height="49" />
                </div>
                <img src="images/l06.png" width="47" height="49" class="shows" />
            </a>
        </li>
    </ul>
</div>

jQuery

鼠标悬浮各个按钮及离开代码:

$("#service a").hover(function() {
    if ($(this).prop("className") == "weixin_area") {
        $(this).children("img.hides").show();
    } else {
        $(this).children("div.hides").show();
        $(this).children("img.shows").hide();
        $(this).children("div.hides").animate({
            marginRight: '0px'
        },
        '0');
    }
},
function() {
    if ($(this).prop("className") == "weixin_area") {
        $(this).children("img.hides").hide();
    } else {
        $(this).children("div.hides").animate({
            marginRight: '-163px'
        },
        0,
        function() {
            $(this).hide();
            $(this).next("img.shows").show();
        });
    }
});

返回顶部代码:

$("#top_btn").click(function() {
    $("html,body").animate({scrollTop: 0}, 600);
});

鼠标悬浮微信上方和离开代码:

$(".weixin_area").hover(function() {
    $(this).children(".weixin").show();
},function(){
    $(this).children(".weixin").hide();
})

声明:本资料由淘建站会员提供,如转载注明来源,资料来源淘建站免费素材库:https://www.taojz.cn/texiao/114.html
简洁右侧栏客服代码 希望对你有帮助,感谢您的支持!
  • jQuery仿蜜淘在线客服

    jQuery仿蜜淘在线客服

  • jQuery多个在线QQ客服代码

    jQuery多个在线QQ客服代码

  • jQuery win8扁平风格返回顶部和在线客服网站侧边栏代码

    jQuery win8扁平风格返回顶部和在线客服网站侧边栏代码

  • 蓝色的jquery固定div悬浮在线客服代码

    蓝色的jquery固定div悬浮在线客服代码

  • 绿色清新jQuery在线QQ客服

    绿色清新jQuery在线QQ客服

  • 悬浮右侧可展开搜索的客服代码

    悬浮右侧可展开搜索的客服代码

  • js网页右侧客服在线浮窗代码

    js网页右侧客服在线浮窗代码

  • 常用jQuery网站右侧悬浮在线客服代码

    常用jQuery网站右侧悬浮在线客服代码

  • js悬浮QQ在线客服代码(支持拖动)

    js悬浮QQ在线客服代码(支持拖动)

  • js浮动层制作在线客服float浮动层固定在浏览器左侧

    js浮动层制作在线客服float浮动层固定在浏览器左侧

  • jQuery网页右下角悬浮的美女在线客服代码

    jQuery网页右下角悬浮的美女在线客服代码

  • 有二维码的在线客服代码

    有二维码的在线客服代码

  • 留言(0)
    头像
     阿里云限量代金券,戳我领取
    1 2