求常用的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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台菜单</title>
<style type="text/css">
html {
overflow-Y: scroll;
}
body {
font: 10px normal Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
line-height: 1.7em;
font-size:12px;
}
*, * focus {
outline: none;
margin: 0;
padding: 0;
}
.container {
width: 160px;
margin: 0 auto;
}
h1 {
font: 4em normal Georgia, 'Times New Roman', Times, serif;
text-align:center;
padding: 20px 0;
color: #aaa;
font-size:12px;
}
h1 span { color: #666; }
h1 small{
font: 0.3em normal Verdana, Arial, Helvetica, sans-serif;
text-transform:uppercase;
letter-spacing: 0.5em;
display: block;
color: #666;
}
h2.acc_trigger {
padding: 0; margin: 0 0 5px 0;
background: url(h2_trigger_a.gif) no-repeat;
height: 33px; line-height: 33px;
width: 160px;
font-size: 12px;
font-weight: normal;
float: left;
}
h2.acc_trigger a {
color: #fff;
text-decoration: none;
display: block;
padding: 0 0 0 50px;
}
h2.acc_trigger a:hover {
color: #ccc;
}
h2.active {background-position: left bottom;}
.acc_container {
margin: 0 0 5px; padding: 0;
overflow: hidden;
font-size: 1.2em;
width: 160px;
clear: both;
background: #f0f0f0;
border: 1px solid #d6d6d6;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
.acc_container .block {
padding: 20px;
}
.acc_container .block p {
padding: 5px 0;
margin: 5px 0;
}
.acc_container h3 {
font: 2.5em normal Georgia, "Times New Roman", Times, serif;
margin: 0 0 10px;
padding: 0 0 5px 0;
border-bottom: 1px dashed #ccc;
}
.acc_container img {
float: left;
margin: 10px 15px 15px 0;
padding: 5px;
background: #ddd;
border: 1px solid #ccc;
}
</style>
<script type="text/javascript" src="jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.acc_container').hide();
$('.acc_trigger:first').addClass('active').next().show();
$('.acc_trigger').click(function(){
if( $(this).next().is(':hidden') ) {
$('.acc_trigger').removeClass('active').next().slideUp();
$(this).toggleClass('active').next().slideDown();
}
return false;
});
});
</script>
</head>
<body>
<div class="container">
<h2 class="acc_trigger"><a href="http://www.yqdata.com">网站基本信息</a></h2>
<div class="acc_container">
<div class="block">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业基本信息</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业栏目管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
</table>
</div>
</div>
<h2 class="acc_trigger"><a href="#">网站内容管理</a></h2>
<div class="acc_container">
<div class="block">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
</table>
</div>
</div>
<h2 class="acc_trigger"><a href="#">网站会员管理</a></h2>
<div class="acc_container">
<div class="block">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
</table>
</div>
</div>
<h2 class="acc_trigger"><a href="#">网站产品管理</a></h2>
<div class="acc_container">
<div class="block">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
</table>
</div>
</div>
</div>
</body>
</html>
<P>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台菜单</title>
<style type="text/css">
html {
overflow-Y: scroll;
}
body {
font: 10px normal Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
line-height: 1.7em;
font-size:12px;
}
*, * focus {
outline: none;
margin: 0;
padding: 0;
}
.container {
width: 160px;
margin: 0 auto;
}
h1 {
font: 4em normal Georgia, 'Times New Roman', Times, serif;
text-align:center;
padding: 20px 0;
color: #aaa;
font-size:12px;
}
h1 span { color: #666; }
h1 small{
font: 0.3em normal Verdana, Arial, Helvetica, sans-serif;
text-transform:uppercase;
letter-spacing: 0.5em;
display: block;
color: #666;
}
h2.acc_trigger {
padding: 0; margin: 0 0 5px 0;
background: url(h2_trigger_a.gif) no-repeat;
height: 33px; line-height: 33px;
width: 160px;
font-size: 12px;
font-weight: normal;
float: left;
}
h2.acc_trigger a {
color: #fff;
text-decoration: none;
display: block;
padding: 0 0 0 50px;
}
h2.acc_trigger a:hover {
color: #ccc;
}
h2.active {background-position: left bottom;}
.acc_container {
margin: 0 0 5px; padding: 0;
overflow: hidden;
font-size: 1.2em;
width: 160px;
clear: both;
background: #f0f0f0;
border: 1px solid #d6d6d6;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
.acc_container .block {
padding: 20px;
}
.acc_container .block p {
padding: 5px 0;
margin: 5px 0;
}
.acc_container h3 {
font: 2.5em normal Georgia, "Times New Roman", Times, serif;
margin: 0 0 10px;
padding: 0 0 5px 0;
border-bottom: 1px dashed #ccc;
}
.acc_container img {
float: left;
margin: 10px 15px 15px 0;
padding: 5px;
background: #ddd;
border: 1px solid #ccc;
}
</style>
<script type="text/javascript" src="jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.acc_container').hide();
$('.acc_trigger:first').addClass('active').next().show();
$('.acc_trigger').click(function(){
if( $(this).next().is(':hidden') ) {
$('.acc_trigger').removeClass('active').next().slideUp();
$(this).toggleClass('active').next().slideDown();
}
return false;
});
});
</script>
</head>
<body>
<div class="container">
<h2 class="acc_trigger"><a href="http://www.yqdata.com">网站基本信息</a></h2>
<div class="acc_container">
<div class="block">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业基本信息</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业栏目管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
</table>
</div>
</div>
<h2 class="acc_trigger"><a href="#">网站内容管理</a></h2>
<div class="acc_container">
<div class="block">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
</table>
</div>
</div>
<h2 class="acc_trigger"><a href="#">网站会员管理</a></h2>
<div class="acc_container">
<div class="block">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
</table>
</div>
</div>
<h2 class="acc_trigger"><a href="#">网站产品管理</a></h2>
<div class="acc_container">
<div class="block">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业新闻栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例管理</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
<tr><td align="left"><a href="http://yqdata.com/customer/contactus.php">企业案例栏目</a></td><td><a href="http://yqdata.com/customer/contactus.php" href="http://yqdata.com/customer/contactus.php">添加</a></td></tr>
</table>
</div>
</div>
</div>
</body>
</html>
<P>
参考资料: http://bbs.jiyuanwang.net/thread-7-1-1.html
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询