利用jquery实现两级菜单带返回按钮



74 294 99



特效描述:利用jquery实现 两级菜单 带返回按钮,利用jquery实现两级菜单带返回按钮

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/text.css" />
<link rel="stylesheet" href="css/960.css" />
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="css/niceMenu.css" type="text/css">

2. 引入JS

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/niceMenu.class.min.js"></script>

3. HTML代码

    <div id="content">
<!--DEMO start-->
<div class="container_12">
	<div id="headline" class="grid_12">
		<h2>Nice menu vs 1.0</h2>
		<p><em>Nice mode to browse between huge 2 levels menu.</em></p>
	</div>
	<div class="clear"></div>
	<div class="grid_12">
		<div class="boxItem grid_4">
			<!-- niceMenu box -->
			<div class="niceMenu">
				<!-- niceMenu back button -->
				<a href="#back" class="niceMenu-backBtn" id="niceMenu-backBtn"></a>
				<div class="niceMenu-top"></div>
				<div class="niceMenu-middle">
					<div class="niceMenu-wrapper" id="niceMenu">
						<ul>
							<li>
								<a href="#">Books</a>
								<ul>
									<li><a href="#">Arts & Photography</a></li>
									<li><a href="#">Audiobooks</a></li>
									<li><a href="#">Audible Audiobook Downloads</a></li>
									<li><a href="#">Biographies & Memoirs</a></li>
									<li><a href="#">Business & Investing</a></li>
									<li><a href="#">Children's Books</a></li>
									<li><a href="#">Christian Books</a></li>
									<li><a href="#">Comics & Graphic Novels</a></li>
									<li><a href="#">Computers & Internet</a></li>
									<li><a href="#">Cooking, Food & Wine</a></li>
									<li><a href="#">Crafts & Hobbies</a></li>
									<li><a href="#">Entertainment</a></li>
									<li><a href="#">Gay & Lesbian</a></li>
									<li><a href="#">Health, Mind & Body</a></li>
									<li><a href="#">History</a></li>
									<li><a href="#">Literature & Fiction</a></li>
									<li><a href="#">Mystery & Thrillers</a></li>
									<li><a href="#">Nonfiction</a></li>
									<li><a href="#">Outdoors & Nature</a></li>
									<li><a href="#">Parenting & Families</a></li>
									<li><a href="#">Puzzles & Games</a></li>
									<li><a href="#">Reference</a></li>
									<li><a href="#">Religion & Spirituality</a></li>
									<li><a href="#">Teens</a></li>
									<li><a href="#">Travel</a></li>
								</ul>
							</li>
							<li>
								<a href="#">Movies, Music</a>
								<ul>
									<li><a href="#">Movies & TV</a></li>
									<li><a href="#">Blu-ray</a></li>
									<li><a href="#">Video On Demand</a></li>
									<li><a href="#">Music</a></li>
									<li><a href="#">MP3 Downloads</a></li>
									<li><a href="#">Musical Instruments</a></li>
									<li><a href="#">Video Games</a></li>
									<li><a href="#">Game Downloads</a></li>
								</ul>
							</li>
							<li>
								<a href="#">Digital Downloads</a>
								<ul>
									<li><a href="#">Kindle Store</a></li>
									<li><a href="#">Audible Audiobooks</a></li>
									<li><a href="#">Video On Demand</a></li>
									<li><a href="#">MP3 Downloads</a></li>
									<li><a href="#">Game Downloads</a></li>
								</ul>
							</li>
							<li>
								<a href="#">Electronics</a>
								<ul>
									<li><a href="#">TV & Video</a></li>
									<li><a href="#">Home Audio & Theater</a></li>
									<li><a href="#">Camera, Photo & Video</a></li>
									<li><a href="#">Cell Phones & Accessories</a></li>
									<li><a href="#">Video Games</a></li>
									<li><a href="#">MP3 Players & Accessories</a></li>
									<li><a href="#">Car Electronics & GPS</a></li>
									<li><a href="#">Home Appliances</a></li>
									<li><a href="#">Musical Instruments</a></li>
								</ul>
							</li>
							<li>
								<a href="#">Toys, Kids & Baby</a>
								<ul>
									<li><a href="#">Toys & Games</a></li>
									<li><a href="#">Baby</a></li>
									<li><a href="#">Clothing (Kids & Baby)</a></li>
									<li><a href="#">Video Games for Kids</a></li>
								</ul>
							</li>
							<li>
								<a href="#">Sports & Outdoors</a>
								<ul>
									<li><a href="#">Exercise & Fitness</a></li>
									<li><a href="#">Outdoor Recreation</a></li>
									<li><a href="#">Athletic & Outdoor Clothing</a></li>
									<li><a href="#">Team Sports</a></li>
									<li><a href="#">Bikes & Scooters</a></li>
									<li><a href="#">Golf</a></li>
									<li><a href="#">Boating & Water Sports</a></li>
									<li><a href="#">Fan Shop</a></li>
									<li><a href="#">All Sports & Outdoors</a></li>
								</ul>
							</li>
							<li><a href="#">Contact</a></li>
							<li><a href="#">About us</a></li>
						</ul>
					</div>
				</div>
				<div class="niceMenu-bottom"></div>
			</div>
		</div>
		<div class="grid_7">
			<img src="images/demo.png" alt="demo" />
		</div>
	</div>
	<div class="clear"></div>
	<div id="footer" style="text-align: center; border-top: 1px solid #dddddd; margin-top:25px; padding-bottom: 20px;padding-top:5px;">
		<p>&copy; All Rights Reserved. Alexandra Ipate</p>
	</div>
</div>
<!--DEMO end-->
</div>
<div style="text-align:center;clear:both">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动导航菜单 导航切换 二级导航菜单 滑动选项卡切换 下拉导航菜单 图片滑动 图片切换 竖直导航菜单 文字滑动 文字切换 图标导航菜单 滑动手风琴 背景切换 固定导航菜单 滑动星星打分 手风琴 侧边导航菜单 选项卡自动切换 树形导航菜单 视频切换 网址导航菜单 列表切换 导航菜单插件 渐隐切换 文字导航菜单 全屏切换 切换按钮 缩放切换 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滑动滑过 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 导航菜单导航条

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到