Home > Web Front-end > JS Tutorial > jQuery blue style sliding navigation bar code sharing_jquery

jQuery blue style sliding navigation bar code sharing_jquery

WBOY
Release: 2016-05-16 15:44:16
Original
1707 people have browsed it

This is a special effect source code for the sliding navigation bar based on jQuery blue style, which allows the slider to follow the mouse to slide left and right. It is very dynamic compared with ordinary navigation. It is a super cool navigation bar sliding code.
How to use:
1. Introduce nicenav.css, jQuery script library and jquery.nicenav.js file in sequence;
2. Copy the code to the page.
3. You can set the sliding speed of the slider in the $.nicenav() brackets in the code.

Source code downloadAddress

The jQuery blue style sliding navigation bar code shared with you is as follows

<head>
 
 <style type="text/css">
 #bg { background-color: rgb(102, 132, 228); padding: 20px; }
 </style>
 <title>jQuery蓝色风格滑动导航栏</title>
 <link href="css/nicenav.css" rel="stylesheet" />
 <script src="js/jquery-1.9.1.min.js" type="text/javascript"></script>
 <script src="js/jquery.nicenav.js" type="text/javascript"></script>
</head>
<body>
 <div id="bg">
 <!-- 代码 开始 -->
 <div id="container">
 <ul id="nav">
 <li><a href="http://www.jb51.net" target="_blank">脚本之家<span>jb51</span></a></li>
 <li><a href="http://www.jb51.net/web/" target="_blank">网页制作<span>made</span></a></li>
 <li><a href="http://www.jb51.net/jiaoben/" target="_blank">脚本下载<span>download</span></a></li>
 <li><a href="http://www.jb51.net/list/index_1.htm" target="_blank">网络编程<span>programme</span></a></li>
 <li><a href="http://www.jb51.net/list/index_104.htm" target="_blank">数据库<span>database</span></a></li>
 <li><a href="http://www.jb51.net/books/" target="_blank">电子书籍<span>e-books</span></a></li>
 <li><a href="http://www.jb51.net/media/" target="_blank">媒体动画<span>flash</span></a></li>
 </ul>
 <div id="buoy"></div>
 </div>
 <script type="text/javascript">
 $.nicenav(300);
 </script>
 <!-- 代码 结束 -->
 </div>
 
</body>
</html>
Copy after login

Operation rendering:

The above is the jQuery blue style sliding navigation bar code shared with you. I hope you like it.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template