DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> jQuery入門知識 >> JQuery特效代碼 >> jquery 面包屑導航 具體實現
jquery 面包屑導航 具體實現
編輯: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>

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved