jQuery实现图文下拉导航菜单



69 274 92



特效描述:jQuery实现 图文下拉 导航菜单,jQuery实现图文下拉导航菜单

代码结构

1. 引入CSS

<link href="css/megamenu.css" rel="stylesheet">

2. 引入JS

<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/megamenu.js"></script>

3. HTML代码

<div class="content">
	<ul class="megamenu skyblue">
		<li class="active"><a href="#">Home</a></li>
		<li class="grid"><a href="#">Grid</a><div class="megapanel">
			<div class="row">
				<div class="col1">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
			</div>
			<div class="row">
				<div class="col2">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
			</div>
			<div class="row">
				<div class="col3">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
			</div>
			<div class="row">
				<div class="col4">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
			</div>
			<div class="row">
				<div class="col5">
				</div>
				<div class="col1">
				</div>
			</div>
			<div class="row">
				<div class="col6">
				</div>
			</div>
			<div class="row">
				<div class="col3">
				</div>
				<div class="col3">
				</div>
			</div>
			<div class="row">
				<div class="col2">
				</div>
				<div class="col1">
				</div>
				<div class="col1">
				</div>
				<div class="col2">
				</div>
			</div>
			<div class="row">
				<div class="col1">
				</div>
				<div class="col4">
				</div>
				<div class="col1">
				</div>
			</div>
			<div class="row">
				<div class="col4">
				</div>
				<div class="col2">
				</div>
			</div>
			<div class="row">
				<div class="col2">
				</div>
				<div class="col3">
				</div>
				<div class="col1">
				</div>
			</div>
		</div>
		</li>
		<li><a href="#">Images</a><div class="megapanel">
			<div class="row">
				<div class="col1">
					<img src="img/1.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/2.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/3.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/4.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/5.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/6.jpg" title="image" /></div>
			</div>
			<div class="row">
				<div class="col1">
					<img src="img/7.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/8.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/9.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/10.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/11.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/12.jpg" title="image" /></div>
			</div>
			<div class="row">
				<div class="col1">
					<img src="img/13.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/14.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/15.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/16.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/17.jpg" title="image" /></div>
				<div class="col1">
					<img src="img/18.jpg" title="image" /></div>
			</div>
		</div>
		</li>
		<li><a href="#">Dropdown</a><ul class="dropdown">
			<li><a href="#">Dropdown item</a></li>
			<li><a href="#">Dropdown item</a></li>
			<li><a href="#">Dropdown item</a><ul class="dropdown">
				<li><a href="#">Dropdown item</a></li>
				<li><a href="#">Dropdown item</a></li>
				<li><a href="#">Dropdown item</a><ul class="dropdown">
					<li><a href="#">Dropdown item</a></li>
					<li><a href="#">Dropdown item</a></li>
					<li><a href="#">Dropdown item</a></li>
					<li><a href="#">Dropdown item</a></li>
				</ul>
				</li>
				<li><a href="#">Dropdown item</a></li>
			</ul>
			</li>
			<li><a href="#">Dropdown item</a></li>
		</ul>
		</li>
		<li><a href="#">Contact</a><div class="megapanel">
			<div class="row">
				<div class="col3">
					<form class="contact">
						<label for="name">Name</label><input id="name" type="text" /><label for="email">E-mail</label><input id="email" type="text" /><label for="message">Message</label><textarea rows="8" id="message"></textarea><input type="submit" value="Send" /></form>
				</div>
				<div class="col3">
					<h4>Contact info</h4>
					<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
					Curabitur commodo velit at eros feugiat ullamcorper sed sit 
					amet velit. Cras in mattis nulla, quis vehicula tellus. Donec 
					non ultricies tellus. Praesent venenatis, purus et aliquet sodales.</p>
					<p>Augue velit semper turpis, id vehicula augue lacus nec lorem. 
					Proin ultricies risus vel mauris placerat ultricies. Curabitur 
					bibendum vulputate mi sed tincidunt. Aenean eu risus a ipsum 
					auctor mattis. Proin sagittis eget lorem sit amet vehicula. 
					Curabitur bibendum vulputate mi sed tincidunt.</p>
					<div class="adress">
						<label><strong>Megamenu Inc.</strong></label><label>Level 
						123, 123 Elizabeth St, Melbourne</label><label>Victoria 
						1234</label><label>Australia</label><label>Phone: (012) 
						345 6789</label><label><a href="#">megamenu@megamenu.com</a></label></div>
				</div>
			</div>
		</div>
		</li>
		<li class="right"><a href="#">Right</a></li>
	</ul>
</div>
<div style="text-align:center;clear:both">
</div>



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


热门标签: 滚动导航菜单 滑动导航菜单 图片拖动 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 图片放大镜 图片叠加 图片翻转旋转 图片延迟加载 图片淡出淡进 图片全屏 html5动画导航菜单 图片头像上传 二维码 flash导航菜单 滚动切换 滑动选项卡切换 图片广告 图片放大缩小 html5图片动画 带缩略图的幻灯片 地图 图片滚动 图片滑动 图片切换 图片收缩展开 旋转木马 图片轮播 自动滚动图片轮播 图标导航菜单 选项卡切换 滑动手风琴 背景切换 手风琴 切换按钮 表单 图表 导航菜单 图片 头像截图 导航切换 二级导航菜单 文本框 图片网格 导航菜单插件 渐隐切换

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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