Advertisement
Guest User

Slider

a guest
Jan 10th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="description" content="">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Untitled</title>
  8. <link rel="stylesheet" href="bootstrap.min.css">
  9. <link rel="stylesheet" href="style.css">
  10. </head>
  11. <body>
  12.  
  13. <div id="myCarousel" class="carousel slide">
  14. <ol class="carousel-indicators">
  15. <li data-target = "#myCarousel" data-slide-to = "0" class="active"></li>
  16. <li data-target = "#myCarousel" data-slide-to = "1"></li>
  17. </ol>
  18.  
  19. <div class="carousel-inner">
  20. <div class="item active">
  21. <img src="apple.jpg" alt="apple" class="img-responsive">
  22. <div class="carousel-caption"></div>
  23. </div>
  24.  
  25. <div class="item">
  26. <img src="food.jpg" alt="orange" class="img-responsive">
  27. <div class="carousel-caption"></div>
  28. </div>
  29. </div>
  30.  
  31. <a class="carousel-control left" href="#myCarousel" data-slide="prev">
  32. <span class="glyphicon glyphicon-chevron-left"></span><!--Icons won't display-->
  33. </a>
  34.  
  35. <a class="carousel-control right" href="#myCarousel" data-slide="next">
  36. <span class="glyphicon glyphicon-chevron-right"></span><!--Icons won't display-->
  37. </a>
  38.  
  39. </div>
  40.  
  41. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  42. <script src ="bootstrap.js"></script>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement