2
hello friends would like a help please.
I’m trying to make a Carousel on my site and I’m not getting it at all.
I don’t know if it’s a problem in the link , or in the case files, because the way I picked up the site I insert in the code. I only know that , when you insert html the images are all giant.
and when linking the Carousel css file to the page ,the pictures somen and the screen turns all white
here’s how it looks when I insert the html.
what I’m doing wrong ?
$(document).ready(function() {
$("#owl-demo").owlCarousel({
navigation : true, // Show next and prev buttons
slideSpeed : 300,
paginationSpeed : 400,
singleItem:true
// "singleItem:true" is a shortcut for:
// items : 1,
// itemsDesktop : false,
// itemsDesktopSmall : false,
// itemsTablet: false,
// itemsMobile : false
});
});
$(document).ready(function() {
$("#owl-example").owlCarousel();
});
#owl-demo .item img{
display: block;
width: 100%;
height: auto;
}
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>carousel</title>
<link rel="stylesheet" type="text/css" href="css/estilo.css">
<!-- Important Owl stylesheet -->
<link rel="stylesheet" href="css/owl.carousel.css">
<!-- Default Theme -->
<link rel="stylesheet" href="css/owl.theme.default.css">
<!-- jQuery 1.7+ -->
<script src="jquery-1.9.1.min.js"></script>
<!-- Include js plugin -->
<script src="js/owl.carousel.js"></script>
</head>
<body>
<h1>oi</h1>
<div id="owl-example" class="owl-carousel owl-theme">
<div class="item"><img src="img/01.jpg" alt="The Last of us"></div>
<div class="item"><img src="img/02.jpg"" alt="GTA V"></div>
<div class="item"><img src="img/03.jpg"" alt="Mirror Edge"></div>
</div>
</body>
</html>
Thanks @hugocsl I did here I just changed the link, instead of linking by CDN I downloaded the files and Linkei straight.appeared all right just can not make it go through the img alone.
– Danilo rodrigues
@Danilorodrigues enters the link of the documentation I posted and looks for autoplay, not if it is true by default, if it is not you have to put together the other settings etc
– hugocsl
I got thanks to you thank you even.
– Danilo rodrigues
I just can’t get the balls out, which is pagination. In the code tá navigation : True, I switch to false and it doesn’t work. What must be the problem?
– Danilo rodrigues
@Danilorodrigues I think you wrote wrong to take away the navigation places
nav: false
and if you want to take the balls offdots: false
. If you think you’ve solved the problem remember to mark it as accepted :)✔
– hugocsl