"Slide dropdown navigation"
Bootstrap 3.3.0 Snippet by joshuaedwardk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<nav class="navbar navbar-inverse navbar-fixed-top " role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/index.php"> NSTP <i class="fa fa-home"></i></a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav navbar-right">
<!--about us-->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">ABOUT NSTP<b class="caret"></b></a>
<ul class="dropdown-menu nav nav-list">
<li><a href="/aboutus.php"> About NSTP</a></li>
<li class="menu-item dropdown dropdown-submenu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> Meet NSTP</a>
<ul class="dropdown-menu nav nav-list">
<li class="menu-item "><a href="/meet_the_board.php"> Board of Directors</a></li>
<li class="menu-item "><a href="/executive_director.php"> Executive Director</a></li>
<li class="menu-item "><a href="/instructors.php"> NSTP Instructors</a></li>
<li class="menu-item "><a href="/meet_the_office.php"> Meet the Office</a></li>
</ul>
<li><a href="/nstp_awards.php"> Awards</a></li>
<li><a href="/classifieds.php"> Classifieds</a></li>
<li><a href="/testimonial.php"> Testimonials</a></li>
<li><a href="/codeandrules.php"> Code of Ethics</a></li>
<li><a href="/contactus.php"> Contact Us</a></li>
</li>
</ul>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
$(document).ready(function(){
$(".dropdown").hover(
function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop( true, true ).slideDown("fast");
$(this).toggleClass('open');
},
function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop( true, true ).slideUp("fast");
$(this).toggleClass('open');
}
);
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: