欢迎来到代码驿站!

jquery

当前位置:首页 > 网页前端 > jquery

jquery 面包屑导航 具体实现

时间:2021-02-09 14:34:52|栏目: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="js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="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="css/left.css" rel="stylesheet" type="text/css" />
    </head>
<body style="background-color:#e6f4fa;" >
        <div class="subMenuTitle" id="getTitle"><a href="#">主功能菜单</a></div>
        <div style="height:100%;">
            <ul id="navigation">
                <li>
                    <a class="head">类别管理</a>
                    <ul>
                        <li class="title">
                            <a href="#1233333" >博文列表</a>
                        </li>

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

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

                    
                    </ul>
                </li>

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

                    
                    </ul>

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

    </body>
</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>
    <title>YanCms左侧导航栏</title>
    <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="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="css/left.css" rel="stylesheet" type="text/css" />
 </head>
<body style="background-color:#e6f4fa;" >
        <div class="subMenuTitle" id="getTitle"><a href="#">主功能菜单</a></div>
  <div style="height:100%;">
   <ul id="navigation">
    <li>
     <a class="head">类别管理</a>
     <ul>
      <li class="title">
       <a href="#1233333" >博文列表</a>
      </li>

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

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

    
     </ul>
    </li>

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

    
     </ul>

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

 </body>
</html>


上一篇:JQuery 返回布尔值Is()条件判断方法代码

栏    目:jquery

下一篇:浅谈struts1 & jquery form 文件异步上传

本文标题:jquery 面包屑导航 具体实现

本文地址:http://www.codeinn.net/misctech/59978.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有