jCarousel on Drupal
I have the jCarousel module on my Drupal-6 website. On my page I have the following code:
<?php
$items = array (
0 => '<img src="http://dummyimage.com/100x100/000/fff&text=Bio" />',
1 => '<img src="http://dummyimage.com/100x100/000/fff&text=Bio" />',
....
);
$options = array (
'wrap' => 'circular',
'auto' => '5',
);
print theme('jcarousel', $items, $options);
?>
The problem is the when the page originally loads, It loads the images in a list and then puts them into a carousel. How can I make it so that the images load dire开发者_运维技巧ctly into a carousel instead of displaying as a list first?
Without seeing the actual full code, I'm guessing a simple 'overflow:hidden' could solve the problem. As far as I know the carousel items always need to be in a list, you just don't want them to display outside of the container while loading?
精彩评论