码迷,mamicode.com
首页 > Web开发 > 详细

jQuery页面滚动右侧浮动导航切换

时间:2016-04-19 14:23:15      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:

体验效果:
http://hovertree.com/texiao/jquery/49/

效果图:
技术分享


代码如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>jQuery锚点滚动导航菜单 - 何问起</title>
<link rel="stylesheet" type="text/css" href="http://hovertree.com/texiao/jquery/49/css/reset.css">
<link rel="stylesheet" type="text/css" href="http://hovertree.com/texiao/jquery/49/css/menu.css">
<script type="text/javascript" src="http://hovertree.com/ziyuan/jquery/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="http://hovertree.com/texiao/jquery/49/js/menu.js"></script>
</head>
<body>

<div id="menu">
<ul>
<li><a href="#item1" class="cur">One</a></li>
<li><a href="#item2">Two</a></li>
<li><a href="#item3">Three</a></li>
<li><a href="#item4">Four</a></li>
<li><a href="#item5">Five</a></li>
</ul>
</div>

<div id="content">
<div class="item" id="item1">
<h1>1F</h1>
<h1>jQuery锚点滚动导航菜单</h1>
<a href="http://hovertree.com/h/bjaf/2slij8q4.htm" target="_blank">原文</a>
<a href="http://hovertree.com" target="_blank">首页</a>
<a href="http://hovertree.com/texiao/" target="_blank">特效</a>
<br />请点击右侧导航或 滚动鼠标 看看效果。
</div>
<div class="item" id="item2">
<h1>2F</h1>
</div>
<div class="item" id="item3">
<h1>3F</h1>
<img src="http://hovertree.com/hvtimg/bjafjd/070joeh7.jpg" />
</div>
<div class="item" id="item4">
<h1>4F</h1>
<img src="http://hovertree.com/hvtimg/bjafjd/hs6oi257.jpg" alt="战斗" />
</div>
<div class="item" id="item5">
<h1>5F</h1>
<img src="http://hovertree.com/hvtimg/bjafjd/xusm0re6.jpg" alt="美女" />
</div>
</div>
</body>
</html>

转自:http://hovertree.com/h/bjaf/2slij8q4.htm

参考:hovertree.com/code/jquery/nqgp4xcl.htm

更多特效:http://www.cnblogs.com/roucheng/p/texiao.html

jQuery页面滚动右侧浮动导航切换

标签:

原文地址:http://www.cnblogs.com/roucheng/p/jquerymenu.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!