Jcarousel doesnt work

etion - May 26, 2008 - 09:25
Project:jCarousel
Version:5.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

<?php
    jcarousel_add
('sweetie');
   
drupal_add_js (
     
'$(document).ready(function(){
         $("ul.carousel-cars").jcarousel({
           scroll: 1,
           auto: 2,
           wrap: "last"
         });
}); '
,
     
'inline');
?>



<ul id="carousel-cars"  class="jcarousel-skin-ie7">
<li><a href="http://example.com" target="_blank"><img src="/files/couloir_slideshow1/1.jpg" border="0" width="80" height="45" /></a></li>
<li><a href="http://example.com" target="_blank"><img src="/files/couloir_slideshow1/1.jpg" border="0" width="80" height="45" /></a></li>
<li><a href="http://example.com" target="_blank"><img src="/files/couloir_slideshow1/1.jpg" border="0" width="80" height="45" /></a></li>
<li><a href="http://example.com" target="_blank"><img src="/files/couloir_slideshow1/1.jpg" border="0" width="80" height="45" /></a></li>
<li><a href="http://example.com" target="_blank"><img src="/files/couloir_slideshow1/1.jpg" border="0" width="80" height="45" /></a></li>
<li><a href="http://example.com" target="_blank"><img src="/files/couloir_slideshow1/1.jpg" border="0" width="80" height="45" /></a></li>
</ul>

I made a jcarousel with this code in the page and the jcarousel doesnt work. I erased de div container because doesnt works. I dont know what happend. Can you help me.

#1

Wim Leers - March 24, 2009 - 17:18
Status:active» closed

Please see http://sorgalla.com/jcarousel/.

#2

coldice4678 - April 12, 2009 - 19:30

Put the script after the list.

 
 

Drupal is a registered trademark of Dries Buytaert.