jquery 面包屑导航 具体实现

复制代码 代码如下:


<!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>
    <title>YanCms左侧导航栏</title>
    <script src="https://www.jb51.net/js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="https://www.jb51.net/js/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            //#title代表页面中点击的元素
            $(".title").click(function () {
                var con = $(this).html();
                //#getTitle代表页面中想要得到title的值元素
                $("#getTitle").html(con);
                //$(this).attr('href')获取超链接
                var con1 = $(this).attr('href');
               // $("#getTitle").attr("href", "con1");
               // alert(con1);
            });
        });
   </script>
    <script type="text/javascript">
        jQuery().ready(function () {
            jQuery("#navigation").accordion({
                header: '.head',
                event: 'click',
                fillSpace: true,
                animated: 'bounceslide'
            });
        });
    </script>
    <link href="https://www.jb51.net/css/left.css" type="text/css" />
    </head>
<body >
        <div><a href="#">主功能菜单</a></div>
        <div>
            <ul>
                <li>
                    <a>类别管理</a>
                    <ul>
                        <li>
                            <a href="#1233333" >博文列表</a>
                        </li>

                        <li>
                            <a href="#">添加博文</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a>类别管理</a>
                    <ul>
                        <li>
                            <a href="#" target="rightFrame"> 类别列表</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a>友情链接</a>
                    <ul>
                        <li>
                            <a href="#" target="rightFrame"> 链接列表</a>
                        </li>
                        <li>
                            <a href="#" target="rightFrame">添加链接</a>
                        </li>

                    </ul>
                </li>
                <li>
                    <a>系统管理</a>
                    <ul>
                        <li>
                            <a href="#" target="rightFrame">修改管理员密码</a>
                        </li>

                    
                    </ul>
                </li>

                <li>
                    <a>权限管理</a>
                    <ul>
                        <li>
                            <a href="#" target="rightFrame">暂未开放</a>
                        </li>
                        <li>
                            <a href="#" target="rightFrame">暂未开放</a>
                        </li>

                    
                    </ul>

                </li>
            </ul>
        </div>

    </body>
</html>


复制代码 代码如下:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wdgdfd.html