实用帮助中心切换效果以及Css判断

<script src="Js/jquery-1.8.3.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="Js/Common.js"></script>

    <script type="text/javascript">
        $(function() {
            $(".faq_menu dt").click(function() {
                var index = $(".faq_menu dt").index(this);
                if ($(".faq_menu dl dt").eq(index).siblings("dd").css("display") == "block") {
                    $(".faq_menu dl dt").eq(index).find("span").html("&#xe674;");
                } else {
                    $(".faq_menu dl dt").eq(index).find("span").html("&#xe673;");
                }
                $(".faq_menu dl dt").eq(index).siblings("dd").toggle('slow');
            });
        });
        $(function() {
            $(".faq_menu dd").click(function() {
                var index = $(".faq_menu dd").index(this);
                $(".faq_menu dd").eq(index).find("a").addClass("moa");
                $(this).siblings().find("a").removeClass("moa");
            });
        })
    </script>  

 <div class="faq_menu" style="cursor: pointer">
            <dl>
                <dt><span class="iconfont">&#xe674;</span>基础使用</dt>
                <dd>
                    <a>企业介绍类</a></dd>
                <dd>
                    <a>数据安全类</a></dd>
                <dd>
                    <a>用户注册类</a></dd>
                <dd>
                    <a>系统管理类</a></dd></dl>
            <dl>
                <dt><span class="iconfont">&#xe674;</span>终端操作</dt>
                <dd style="display: none">
                    <a>企业介绍类</a></dd>
                <dd style="display: none">
                    <a>数据安全类</a></dd>
                <dd style="display: none">
                    <a>用户注册类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd></dl>
            <dl>
                <dt><span class="iconfont">&#xe674;</span>主线应用</dt>
                <dd style="display: none">
                    <a>企业介绍类</a></dd>
                <dd style="display: none">
                    <a>数据安全类</a></dd>
                <dd style="display: none">
                    <a>用户注册类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd></dl>
            <dl>
                <dt><span class="iconfont">&#xe674;</span>工作协同</dt>
                <dd style="display: none">
                    <a>企业介绍类</a></dd>
                <dd style="display: none">
                    <a>数据安全类</a></dd>
                <dd style="display: none">
                    <a>用户注册类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd></dl>
            <dl>
                <dt><span class="iconfont">&#xe674;</span>内部管理</dt>
                <dd style="display: none">
                    <a>企业介绍类</a></dd>
                <dd style="display: none">
                    <a>数据安全类</a></dd>
                <dd style="display: none">
                    <a>用户注册类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd></dl>
            <dl>
                <dt><span class="iconfont">&#xe674;</span>时间管理</dt>
                <dd style="display: none">
                    <a>企业介绍类</a></dd>
                <dd style="display: none">
                    <a>数据安全类</a></dd>
                <dd style="display: none">
                    <a>用户注册类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd></dl>
            <dl>
                <dt><span class="iconfont">&#xe674;</span>沟通交流</dt>
                <dd style="display: none">
                    <a>企业介绍类</a></dd>
                <dd style="display: none">
                    <a>数据安全类</a></dd>
                <dd style="display: none">
                    <a>用户注册类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd></dl>
            <dl>
                <dt><span class="iconfont">&#xe674;</span>项目管理</dt>
                <dd style="display: none">
                    <a>企业介绍类</a></dd>
                <dd style="display: none">
                    <a>数据安全类</a></dd>
                <dd style="display: none">
                    <a>用户注册类</a></dd>
                <dd style="display: none">
                    <a>系统管理类</a></dd></dl>
        </div>

转载于:https://www.cnblogs.com/LD1018/p/8032074.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值