<!-- Sample Code for implementing Carousel -->
<div id="myCarousel" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
<li data-target="#myCarousel" data-slide-to="4"></li>
</ol>
<!-- Carousel items -->
<!-- images are stored in the img folder which is at the same location or directory as the HTML file-->
<div class="carousel-inner">
<div class="active item"><img src="img/img1.jpg" width="100%" ></div>
<div class="item"><img src="img/img2.jpg" width="100%" ></div>
<div class="item"><img src="img/img3.jpg" width="100%" ></div>
<div class="item"><img src="img/img4.jpg" width="100%" ></div>
<div class="item"><img src="img/img5.jpg" width="100%" ></div>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>
<!-- Make sure you include the necessary Bootstrap files -->
<!--The link to the CSS file in between the <head> and </head> tags -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<!--It is recommeneded that you place the following files near the closing </body> tag-->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Quotes help make search much faster. Example: "Practice Makes Perfect"
Showing posts with label Twitter Bootstrap. Show all posts
Showing posts with label Twitter Bootstrap. Show all posts
Saturday, October 26, 2013
Subscribe to:
Posts (Atom)
This is an example of scrolling text using Javascript.
Popular Posts
-
# Codecademy sample solution # What are the four commonly used HTTP methods ("verbs")? # A: FIND, SEND, UPDATE, REMOVE # B: ...
-
$("#tours > li")
-
<!--sample solution--> <html> <head> <title>Week 13 Project</title> </head> ...
-
//sample solution def isEven(x): if(x % 2 == 0): return "yep" else: return "nope"
-
<html> <head> <!-- Add the Parse SDK here! --> <script src="http://www.parsecdn.com/js/par...
-
<!-- Sample solution to index.html --> <!DOCTYPE html> <html> <body> <div class="nav"> ...
-
Answer: Alt - p p stands for previous. If you keep pressing Alt - p, you will continue cycling back through commands you typed before. I...
-
#sample solution hungry = false unless hungry puts "I'm writing Ruby programs!" else puts "Time to eat!...
-
// sample solution to panel.js $(document).ready(function(){ var $panel = $("#panel"); var $tab = $("#tab"); ...
-
//sample solution var yourName = "Pam"; var gender = "female"; var result; //Line 10 starts an if statement //Ne...