Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
103
rated 0 times [  110] [ 7]  / answers: 1 / hits: 105121  / 12 Years ago, sun, september 23, 2012, 12:00:00

I'm trying to implement the twitter bootstrap carousel, and it's not working - it doesn't switch images automatically, AND the previous/next buttons don't work.



I've tried switching to jquery 1.7.1 as suggested on Bootstrap Carousel Not Automatically Sliding and Bootstrap Carousel Not working, but nothing seems to help.



Any ideas would be appreciated.



<!DOCTYPE html>
<html>
<head>
<title>Slideshow Test</title>
<link href=css/bootstrap.css rel=stylesheet type=text/css />
<script src=js/bootstrap.js></script>
<script src=js/jquery-1.7.1.min.js></script>
<script src=js/bootstrap-transition.js></script>
</head>
<body>
<div id=myCarousel class=carousel slide style=width:450px>
<!-- Carousel items -->
<div class=carousel-inner>
<div class=item active><img src=img/IMG_2.jpg></div>
<div class=item><img src=img/IMG_3.jpg></div>
<div class=item><img src=img/IMG_1.jpg></div>
<!-- Carousel nav -->
<a class=carousel-control left href=#myCarousel data-slide=prev>&lsaquo;</a>
<a class=carousel-control right href=#myCarousel data-slide=next>&rsaquo;</a>
</div>
</div>
</body>
</html>


You can view it and its linked files at www.abbymilberg.com/bootstrap.


More From » jquery

 Answers
13

You should include bootstrap.js after you include jquery.js:



<script src=js/jquery-1.7.1.min.js></script>
<script src=js/bootstrap.js></script>

[#82953] Thursday, September 20, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jackelyn

Total Points: 303
Total Questions: 103
Total Answers: 102

Location: Turks and Caicos Islands
Member since Sun, Mar 7, 2021
3 Years ago
jackelyn questions
Thu, Apr 8, 21, 00:00, 3 Years ago
Sun, Feb 28, 21, 00:00, 3 Years ago
Mon, May 25, 20, 00:00, 4 Years ago
Thu, Apr 30, 20, 00:00, 4 Years ago
;