"Slider"
Bootstrap 3.3.0 Snippet by rawbenny

<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 ----------> <div class="container"> <div class="row"> <div class="col-lg-6"> <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li data-target="#carousel-example-generic" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <div style="background:#5133AB;width:100%;height:200px;color:#000"> Hello1 </div> </div> <div class="item"> <div style="background:#AC193D;width:100%;height:200px;color:#000;"> World2 </div> </div> <div class="item"> <div style="background:#DC572E;width:100%;height:200px;color:#000;"> World3 </div> </div> </div> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <button class="btn btn-large btn-success" id="next-btn">Next</button> </div> </div> </div>
.carousel-indicators { position:absolute; right:10px; top:20px; }
$("#next-btn").click(function(){ alert(111); //$("#carousel-example-generic").carousel("next"); alert(222); });

Related: See More


Questions / Comments: