利用jQuery實現遮罩特效下拉導航



46 182 61



特效描述:利用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>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 滾動導航菜單 滾動菜單 滾動導航 滑動導航菜單 滑動導航 滑動菜單 浮動菜單 浮動導航 導航切換 菜單切換 右鍵菜單 收縮菜單 收縮導航 h5動畫導航 h5動畫菜單 html5動畫導航 html5動畫菜單 flash導航菜單 flash導航條 flash導航 flash菜單 flash下拉菜單 flash下拉導航菜單 滾動切換 滾動條切換 滑動選項卡 滑動切換 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 滑動星星打分 導航菜單 導航條 菜單欄 導航欄 分類導航 響應式導航條 響應式導航 其他 導航切換 菜單切換 下拉列表 下拉菜單 下拉導航 下拉導航菜單 下拉菜單導航 響應式下拉菜單 選項卡自動切換 導航菜單插件 導航插件 菜單插件 文字導航菜單 文字導航 文字菜單 鼠標滑過 鼠標懸停 跟隨鼠標移動
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

湖北30选5开奖结果走势图表