利用jQuery实现遮罩特效下拉导航



78 311 104



特效描述:利用jQuery实现 遮罩特效 下拉导航,利用jQuery实现遮罩特效下拉导航

代码结构

1. 引入CSS

<link href="css/template.css" rel="stylesheet" type="text/css" />
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" media="screen" href="js/timelines.css" />
<link href="css/template.css" rel="stylesheet" type="text/css" />
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" media="screen" href="js/timelines.css" />

2. 引入JS

<script src="js/jquery.min.js"></script>
<script src="js/ui.js"></script>
<script src="js/utilities.js"></script>
<script type="text/javascript" src="js/jquery.lightbox.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/ui.js"></script>
<script src="js/utilities.js"></script>
<script type="text/javascript" src="js/jquery.lightbox.min.js"></script>

3. HTML代码

<!DOCTYPE html><!--[if IE 7 ]>
<html dir="ltr" lang="en-US" class="no-js ie ie7 lte7 lte8 lte9">
<![endif]--><!--[if IE 8 ]>
<html dir="ltr" lang="en-US" class="no-js ie ie8 lte8 lte9">
<![endif]--><!--[if IE 9 ]>
<html dir="ltr" lang="en-US" class="no-js ie ie9 lte9">
<![endif]--><!--[if (gt IE 9)|!(IE)]>
<!-->
<html dir="ltr" lang="en-US" class="no-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<script src="js/modernizr-1.7.min.js">
  </script>
<script src="js/detection.js">
  </script>
</head>
<body id="home-page" class="home blog news">
<script src="js/home-ipad.js">
  </script>
<div class="cover">
</div>
<div id="header" class="container">
                <header class="main-header">
                  <h1><a href="http://51qianduan.com">Lake Nona</a></h1>
                      <nav id="main-navigation" class="menu-primary-container">
	<ul id="menu-primary" class="menu">
		<li id="menu-item-1016" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1016">
		<a href="http://51qianduan.com/?community/">Community</a></li>
		<li id="menu-item-1017" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1017">
		<a href="http://51qianduan.com/?live/">Live</a></li>
		<li id="menu-item-1015" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1015">
		<a href="http://51qianduan.com/?commerce/">Commerce</a></li>
		<li id="menu-item-2661" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2661">
		<a href="http://51qianduan.com/?community/education/">Learn</a></li>
		<li id="menu-item-1014" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1014">
		<a href="http://51qianduan.com/?medical-city/">Medical City</a></li>
		<li id="menu-item-1013" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1013">
		<a href="http://51qianduan.com/?register/">Register</a></li>
	</ul>
	</nav>                </header>
                <section id="nav-dropdown" class="closed">
	<div id="window-slide">
		<div id="community" class="drop-down">
			<ul>
				<li><a href="http://51qianduan.com/?community/map/">
				<div class="meta">
					<h3>Map </h3>
					<p>Explore the range of activities—from education and 
					entert...</p>
				</div>
				<img src="images/nona-map_145x1151.jpg" alt="images/nona-map_145x1151.jpg" alt="Map" />
				</a></li>
				<li><a href="http://51qianduan.com/?community/education/">
				<div class="meta">
					<h3>Education </h3>
					<p>It’s more than community schools. It’s a 
					state-of-the-art...</p>
				</div>
				<img src="images/LN_Middle_150x120.jpg" alt="images/LN_Middle_150x120.jpg" alt="Education " />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?community/sustainability/">
				<div class="meta">
					<h3>Sustainability </h3>
					<p>From open green spaces to smart electricity, 
					conservation...</p>
				</div>
				<img src="images/ddi_15.jpg" alt="images/ddi_15.jpg" alt="Sustainability " />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?community/healthy-living/">
				<div class="meta">
					<h3>Healthy Living </h3>
					<p>With 44 miles of paved and unpaved trails, residents can 
					...</p>
				</div>
				<img src="images/ddi_04.jpg" alt="images/ddi_04.jpg" alt="Healthy Living " />
				</a></li>
				<li><a href="http://51qianduan.com/?community/parks/">
				<div class="meta">
					<h3>Parks and Amenities </h3>
					<p>So many lush parks, most are within a five-minute walk 
					fr...</p>
				</div>
				<img src="images/ddi_01.jpg" alt="images/ddi_01.jpg" alt="Parks and Amenities " />
				</a></li>
				<li class="no-module"><a href="/blog/">
				<div class="meta">
					</a></div>
				</li>
			</ul>
		</div>
		<div id="live" class="drop-down">
			<ul>
				<li><a href="http://51qianduan.com/?live/laureate-park/">
				<div class="meta">
					<h3>Laureate Park </h3>
					<p>Live near Lake Nona’s Medical City, in this 
					forward-think...</p>
				</div>
				<img src="images/Lp-DRop.jpg" alt="images/Lp-DRop.jpg" alt="Laureate Park " />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?live/lake-nona-golf-country-club-2/">
				<div class="meta">
					<h3>Lake Nona Golf &amp; Country Club </h3>
					<p>This private community is home to world-class amenities 
					a...</p>
				</div>
				<img src="images/ddi_051.jpg" alt="images/ddi_051.jpg" alt="Lake Nona Golf &amp; Country Club" />
				</a></li>
				<li><a href="http://51qianduan.com/?live/village-walk/">
				<div class="meta">
					<h3>Village Walk </h3>
					<p>Uniquely designed, this waterfront community features 
					str...</p>
				</div>
				<img src="images/ddi_19.jpg" alt="images/ddi_19.jpg" alt="Village Walk " />
				</a></li>
				<li><a href="http://51qianduan.com/?live/waters-edge/">
				<div class="meta">
					<h3>Waters Edge </h3>
					<p>Enjoy life on the pristine, crystal-clear lake that is 
					La...</p>
				</div>
				<img src="images/ddi_211.jpg" alt="images/ddi_211.jpg" alt="Waters Edge" />
				</a></li>
				<li><a href="http://51qianduan.com/?live/water-mark/">
				<div class="meta">
					<h3>Lake Nona Water Mark Apartments </h3>
					<p>Lake Nona Water Mark Apartments will be a collection 
					luxu...</p>
				</div>
				<img src="images/watermark-dropdown.jpg" alt="images/watermark-dropdown.jpg" alt="Lake Nona Water Mark Apartments" />
				</a></li>
				<li><a href="http://51qianduan.com/?live/north-lake-park/">
				<div class="meta">
					<h3>NorthLake Park </h3>
					<p>500-acre, neo-traditional community featuring an 
					abundanc...</p>
				</div>
				<img src="images/ddi_11.jpg" alt="images/ddi_11.jpg" alt="NorthLake Park " />
				</a></li>
			</ul>
		</div>
		<div id="commerce" class="drop-down">
			<ul>
				<li>
				<a href="http://51qianduan.com/?commerce/lake-nona-town-center/">
				<div class="meta">
					<h3>Lake Nona Town Center </h3>
					<p>Take pleasure in the abundance of shopping, dining and 
					en...</p>
				</div>
				<img src="images/ddi_07.jpg" alt="images/ddi_07.jpg" alt="Lake Nona Town Center" />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?commerce/lake-nona-village/">
				<div class="meta">
					<h3>Lake Nona Village </h3>
					<p>A generous mix of retail and office condominiums. </p>
				</div>
				<img src="images/ddi_08.jpg" alt="images/ddi_08.jpg" alt="Lake Nona Village " />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?commerce/lake-nona-plaza/">
				<div class="meta">
					<h3>Lake Nona Plaza </h3>
					<p>Located on Narcoossee Rd., just south of Lake Nona 
					Middle...</p>
				</div>
				<img src="images/LNP-dropdown.jpg" alt="images/LNP-dropdown.jpg" alt="Lake Nona Plaza" />
				</a></li>
				<li><a href="http://51qianduan.com/?commerce/office-space/">
				<div class="meta">
					<h3>Office Space </h3>
					<p>Designed with professionals in mind, Lake Nona hosts 
					ampl...</p>
				</div>
				<img src="images/ddi_12.jpg" alt="images/ddi_12.jpg" alt="Office Space " />
				</a></li>
				<li class="double-no-module"><a href="/blog/"></a></li>
				<span class="compass"></span></li>
			</ul>
		</div>
		<div id="medical-city" class="drop-down">
			<ul>
				<li>
				<a href="http://51qianduan.com/?medical-city/ucf-health-sciences-campus/">
				<div class="meta">
					<h3>UCF Health Sciences Campus </h3>
					<p>With expectations to produce 120 graduates a year this 
					ca...</p>
				</div>
				<img src="images/ddi_16.jpg" alt="images/ddi_16.jpg" alt="UCF Health Sciences Campus " />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?medical-city/sanford-burham/">
				<div class="meta">
					<h3>Sanford-Burnham </h3>
					<p>For over 30 years, this institute has been dedicated to 
					f...</p>
				</div>
				<img src="images/ddi_141.jpg" alt="images/ddi_141.jpg" alt="Sanford-Burnham " />
				</a></li>
				<li><a href="http://51qianduan.com/?medical-city/nemours/">
				<div class="meta">
					<h3>Nemours </h3>
					<p>Catering to children, this state-of-the-art hospital and 
					...</p>
				</div>
				<img src="images/nemours-drop-down.jpg" alt="images/nemours-drop-down.jpg" alt="Nemours " />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?medical-city/uf-research-center/">
				<div class="meta">
					<h3>UF Research &amp; Academic Center </h3>
					<p>Located next to Sanford-Burnham, this facility will 
					enabl...</p>
				</div>
				<img src="images/UF-dropdown.jpg" alt="images/UF-dropdown.jpg" alt="UF Research &amp; Academic Center" />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?medical-city/va-medical-center/">
				<div class="meta">
					<h3>VA Medical Center </h3>
					<p>A center designed to provide accessible health care for 
					a...</p>
				</div>
				<img src="images/ddi_18.jpg" alt="images/ddi_18.jpg" alt="VA Medical Center " />
				</a></li>
				<li>
				<a href="http://51qianduan.com/?medical-city/m-d-anderson/">
				<div class="meta">
					<h3>MD Anderson </h3>
					<p>An institute devoted to bringing expertise and resources 
					...</p>
				</div>
				<img src="images/ddi_09.jpg" alt="images/ddi_09.jpg" alt="MD Anderson" />
				</a></li>
			</ul>
		</div>
	</div>
</section>
                <div id="nonaology">
					<div>
						<a href="http://51qianduan.com" class="social-twitter" target="_target">
						Twitter</a>
						<a href="https://51qianduan.com" class="social-facebook" target="_target">
						Facebook</a> <a href="http://51qianduan.com/?blog">
						Nonawise</a>
					</div>
	</div>
</div>
<div id="shell">
	<div id="staticImage" style="display: block">
	</div>
    <section id="main">  
    <section id="home-slides"> 
    </section> 
	<div id="shelf">
		<div id="range">
			<div id="magnify-glass">
			</div>
		</div>
		<div id="prev-arrow">
		</div>
		<div id="next-arrow">
		</div>
		<div id="shelf-back">
		</div>
		<div id="shelf-front">
		</div>
<div style="text-align:center;clear:both">
</div>
	</div>
</div>
<script src="js/init.js">
  </script>
<script type="text/javascript">
    jQuery(document).ready(function($){
      $.lightbox().overlay.options.style.opacity = 0.8;
      $.extend($.lightbox().options, {
        emergefrom      : "top",
        moveDuration    : 1000,
        resizeDuration  : 1000
      });
      $(".lightbox").lightbox({
        modal       : 0,
        autoresize  : 1
      });
    });
  </script>
</body>
</html>



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


热门标签: 瀑布流 收藏 预览 自适应页面大小 响应式区块列表布局 摇摆 烟花 清单样式 照相机 注释 下划线 结构图 鼠标悬停 条形码 弹幕 画板 朋友圈样式 红包 css绘制样式 支付 图文布局 导航切换 二级导航菜单 二维码 下拉导航菜单 地图 图片切换 竖直导航菜单 计算器 文字切换 图标导航菜单 计时器 背景切换 固定导航菜单 桌面 手风琴 侧边导航菜单 跳转 选项卡自动切换 树形导航菜单 步骤 视频切换 网址导航菜单 键盘 列表切换 导航菜单插件 签到 分享 渐隐切换 文字导航菜单 点赞 投票 全屏切换 雪花 切换按钮 打印 缩放切换 答题 震动 图表 鼠标滑过 抽奖 表情 qq空间 头像截图 星星打分评分 编辑器 播放器 电子杂志 排行榜 分页翻页 排序 表格隔行变色 table表格 进度条 多功能 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 滑动星星打分 导航菜单导航条 其他更多

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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