Hi guys,
I am trying to implement my first carousel on my website. I have 5 images with the same dimensions with the following HTML markup:
<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>
<li data-target="#myCarousel" data-slide-to="5"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="/pictures/home1.jpg" alt="CASHS" >
</div>
<div class="item">
<img src="/pictures/home4.jpg" alt="SWAROVSKI">
</div>
<div class="item">
<img src="/pictures/home2.jpg" alt="MARQUIS" >
</div>
<div class="item">
<img src="/pictures/home3.jpg" alt="ORREFORS" >
</div>
<div class="item">
<img src="/pictures/home5.jpg" alt="WATERFORD" >
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glypicon glypicon-cheveron-left"></span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glypicon glypicon-cheveron-right"></span>
</a>
</div>
I know that I have to actually call this and include the some additional librairies. Therefore, I included the following code:
<script type='text/javascript' src="/bootstrap.js"></script>
<script type="text/javascript" src="/functions.js"></script>
<script>
//starts the carousel
$('#myCarousel').carousel();
</script>
I inserted the above in the <head> portion of my home.html page. All that shows up on the page is the five images and the numbers 1 to 5. I am including the link to my website which is only intended for educational purposes. So please if anyone can help I would sure appreciate it.
Thanks,
Alex
Inline Code Example Here