jCarousel Lite

2 respostas
javahunter

Pessoal sou novato no uso do jQuery

Esse código tem alguma coisa de errado?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Carousel Lite</title>
<style type="text/css">
#carosel img{width:150px; padding:5px; border:1px solid margin:0 5px;}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jcarousel.js"></script>
<script type="text/javascript">

   $(function(){
   
   $(".carosel").jCarouselLite({
     btnNext: ".next",
     btnPrev: ".prev",
     visible: 5,
     auto: 5000,
     speed: 2000
	 
   })
   
})


</script>
</head>
 
<body>
 
<div id="carosel">
   <div class="carosel">
    <button class"prev">Anterior</button>
	<ul>
	 <li><img src="img1.jpg" alt="" /></li>
	 <li><img src="img2.jpg" alt="" /></li>
	 <li><img src="img3.jpg" alt="" /></li>
	 <li><img src="img4.jpg" alt="" /></li>
	 <li><img src="img5.jpg" alt="" /></li>
	</ul>
	<button class"next">Proximo</button>
   </div><!--carosel calsse-->
</div><!-- carosel div-->

 
</body>
 
</html>
Aparece isso no browse: [img]http://img824.imageshack.us/img824/2158/errocarousellite.jpg[/img]

esta cortando as fotos

2 Respostas

jweibe

http://www.gmarwaha.com/jquery/jcarousellite/#install

Falta adicinar o largura e altura da imagem.

img src="someimage" alt="" width="100" height="100"
javahunter

Vlw jweibe, agora deu certo.

Criado 10 de maio de 2013
Ultima resposta 10 de mai. de 2013
Respostas 2
Participantes 2