基于jQuery实现页面滚动顶部悬浮导航



49 193 65



特效描述:基于jQuery实现 页面滚动 顶部悬浮导航,基于jQuery实现页面滚动顶部悬浮导航

代码结构

1. 引入CSS

<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen">
<link rel="stylesheet" href="css/style.css" media="screen">
<link rel="stylesheet" href="css/zlight.menu.css" media="screen">

2. 引入JS

<script src="jQuery/jquery-1.9.1.min.js"></script>
<script src="js/jquery.zlight.menu.1.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/respond.min.js"></script>

3. HTML代码

	<div class="container" id="main">
		<div class="row">
			<div class="col-lg-12">
				<h4>Default:</h4>
			</div>
		</div>
		<div class="row">
			<div class="col-lg-12">
				<nav id="zlight-nav">
					<ul id="zlight-main-nav">
						<li class="zlight-active"><a href="#">Home</a></li>
						<li class="zlight-dropdown">
							<a href="#">Blog <i class="icon-angle-down"></i></a>
							<ul class="zlight-submenu">
								<li><a href="#">Link 1</a></li>
								<li><a href="#">Link 2</a></li>
								<li><a href="#">Link 3</a></li>
							</ul>
						</li>
						<li><a href="#">Portfolio</a></li>
						<li class="zlight-dropdown">
							<a href="#">Pages <i class="icon-angle-down"></i></a>
							<ul class="zlight-submenu">
								<li><a href="#">Link 1</a></li>
								<li><a href="#">Link 2</a></li>
								<li><a href="#">Link 3</a></li>
								<li class="zlight-dropdown">
									<a href="#">Dropdown <i class="icon-angle-right"></i></a>
									<ul class="zlight-submenu">
										<li><a href="#">Link 1</a></li>
										<li><a href="#">Link 2</a></li>
										<li><a href="#">Link 3</a></li>
										<li class="zlight-dropdown">
											<a href="#">Dropdown <i class="icon-angle-right"></i></a>
											<ul class="zlight-submenu">
												<li><a href="#">Link 1</a></li>
												<li><a href="#">Link 2</a></li>
												<li><a href="#">Link 3</a></li>
												<li><a href="#">Link 4</a></li>
											</ul>
										</li>
									</ul>
								</li>
								<li><a href="#">Link 5</a></li>
							</ul>
						</li>
						<li><a href="#">Contact</a></li>
						<li><a href="#">About</a></li>
					</ul>
					<!-- MOBILE NAV -->
					<div id="zlight-mobile-nav">
						<span>Menu</span>
						<i class="icon-reorder zlight-icon"></i>
						<select></select>
					</div>
				</nav> <!-- nav close -->
			</div>
		</div>
		<div class="row">
			<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 prev-con">
				<h5>Default</h5>
				<a href="index.html" class="prev"><img src="images/1.jpg" alt="preview" class="img-responsive"></a>
			</div>
			<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 prev-con">
				<h5>Custom</h5>
				<a href="prev1.html" class="prev"><img src="images/2.jpg" alt="preview" class="img-responsive"></a>
			</div>
		</div>
		<div class="row">
			<div class="col-lg-12">
				<h4 class="zlight-hhh">jQuery页面滚动顶部悬浮导航</h4>
			</div>
		</div>
		<div class="row" style="margin-bottom:900px;">
			<div class="col-lg-12">
				<p>Z Light Menu is the simple responsive navigation plugin, 
				working with media queries, which can be easy transformed for 
				mobile devices.</p>
				<p><h4 style="margin-top:30px;">Features:</h4>
					<ul>
						<li>Responsive</li>
						<li>Simple to Use</li>
						<li>Cross Browsers</li>
						<li>Fully customizable</li>
						<li>Retina ready (Font Awesome integrated)</li>
						<li>Min version: 5kb</li>
					</ul>
				</p><p>Scroll down (don&#39;t forget to remove the frame)</p>
				<div style="text-align:center;clear:both"><br>
			</div>
			</div>
		</div>
	</div> <!-- main close -->
	</div> <!-- container close -->



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


热门标签: flash导航菜单 flash导航条 flash导航 flash菜单 flash下拉菜单 flash下拉导航菜单 h5动画导航 h5动画菜单 html5动画导航 html5动画菜单 收缩菜单 收缩导航 右键菜单 导航切换 菜单切换 浮动菜单 浮动导航 滑动导航菜单 滑动导航 滑动菜单 滚动导航菜单 滚动菜单 滚动导航 浮动 悬浮 悬浮层 悬浮框 浮动层 浮动框 浮动插件 悬浮插件 滑动星星打分 浮动提示框 导航菜单 导航条 菜单栏 导航栏 分类导航 响应式导航条 响应式导航 其他 顶部固定层 顶部悬浮 二级菜单 二级导航菜单 二级导航 下拉列表 下拉菜单 下拉导航 下拉导航菜单 下拉菜单导航 响应式下拉菜单 导航菜单插件 导航插件 菜单插件 鼠标滑过 鼠标悬停 跟随鼠标移动

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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