"Bootstrap Image Slider"
Bootstrap 3.1.0 Snippet by cyberchefjay

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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"> <h2>Bootstrap Image Slider</h2> </div> <div class='row'> <div class='col-md-10'> <div class="carousel slide media-carousel" id="recommendations"> <div class="carousel-inner"> <div class="item active"> <div class="row"> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> </div> </div> <div class="item"> <div class="row"> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> </div> </div> <div class="item"> <div class="row"> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" data-src="holder.js/120x100%"></a> </div> <div class="col-md-2"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/120x100%"></a> </div> </div> </div> </div> <a data-slide="prev" href="#recommendations" class="left carousel-control btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-left"></span></a> <a data-slide="next" href="#recommendations" class="right carousel-control btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-right"></span></a> </div> </div> </div> </div>
/* carousel */ .media-carousel { margin-bottom: 0; padding: 0 40px 30px 40px; margin-top: 30px; width: 100%; } body .container { width: 100%; margin: auto; } /* Previous button */ .media-carousel .carousel-control.left { left: -12px; background-image: none; background: none repeat scroll 0 0 #222222; border: 1px solid #FFFFFF; border-radius: 20px; height: 120px; width : 60px; margin-top: 30px margin-left:15px; } /* Next button */ .media-carousel .carousel-control.right { right: -12px !important; background-image: none; background: none repeat scroll 0 0 #222222; border: 1px solid #FFFFFF; border-radius: 20px; height: 120px; width : 60px; margin-top: 30px; margin-right: -15px; } /* Changes the position of the indicators */ .media-carousel .carousel-indicators { right: 50%; top: auto; bottom: 0px; margin-right: -19px; } /* Changes the colour of the indicators */ .media-carousel .carousel-indicators li { background: #c0c0c0; } .media-carousel .carousel-indicators .active { background: #333333; } .media-carousel img { width: 100%; height: 180px; } /* End carousel */
$(document).ready(function() { $('#recommendations').carousel({ pause: true, interval: false, }); });

Related: See More


Questions / Comments:

setInterval(function[or]expression, 1000)

Raksha Jaiswal () - 7 years ago - Reply 0


how to set time interval?

Raksha Jaiswal () - 7 years ago - Reply 0