打开主菜单

少前百科GFwiki β

模板:首页轮播2

Mikumikuer讨论 | 贡献2019年8月20日 (二) 22:43的版本

  • testheight=100%
  • testheight=100%
  • testheight=100%


<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>