<script>
mw.loader.load('/images/jslib/jquery.jcarousel-packed.js','text/javascript')
$('.jcarousel')
.on('jcarousel:create jcarousel:reload', function() { var element = $(this); element.find('.jcarousel ul').css('width', '20000em'); width = element.innerWidth(); // This shows 1 item at a time. // Divide `width` to the number of items you want to display, // eg. `width = width / 3` to display 3 items at a time. element.jcarousel('items').css('width', width + 'px'); })
$('.jcarousel').jcarouselAutoscroll({
interval: 4000
}); $('.jcarousel').jcarousel({ wrap:'circular' }) </script>