Ignore:
Timestamp:
Dec 17, 2013, 11:25:38 PM (10 years ago)
Author:
Miklfe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Slimi/template/mainpage_categories.tpl

    r18917 r25998  
    11{define_derivative name='carousel' width='300' height='300' min_width='300'}
    2 
    3 
    4 {html_style}
    5 .jcarousel-skin-cat .jcarousel-list li{ldelim}
    6         min-width:{$carousel->max_width()}px;
    7 {/html_style}
    8 
    9 <div id="carouselcat">
    10 
     2<div id="carousel">
    113<div id="wrap">
    12           <ul id="carousel" class="jcarousel-skin-cat">
    13 
     4        <div class="jcarousel">
     5          <ul>
    146                {foreach from=$category_thumbnails item=cat}
    15 
    16 
    177                        <li>
    188                                        <div class="illustration">
     
    4030                {/foreach}
    4131        </ul>
    42 {footer_script}{literal}
    43 function mycarousel_initCallback(carousel)
    44 {
    45 // Disable autoscrolling if the user clicks the prev or next button.
    46     carousel.buttonNext.bind('click', function() {
    47         carousel.startAuto(1);
    48     });
    49 
    50     carousel.buttonPrev.bind('click', function() {
    51         carousel.startAuto(0);
    52     });
    53        
    54        
    55     // Pause autoscrolling if the user moves with the cursor over the clip.
    56     carousel.clip.hover(function() {carousel.stopAuto();},
    57                                                 function() {carousel.startAuto();}
    58                                                 );
    59 };
    60 
    61 jQuery(document).ready(function() {
    62     jQuery('#carousel').jcarousel({
    63         auto: 1,
    64                 wrap: 'circular',
    65                 scroll: 2,
    66                 animation: 2000,
    67                 initCallback: mycarousel_initCallback,
    68                
    69     });
    70 });
    71 {/literal}{/footer_script}
    7232</div>
    7333</div>
    74 
     34        <a href="#" class="jcarousel-control-prev">&lsaquo;</a>
     35    <a href="#" class="jcarousel-control-next">&rsaquo;</a>
     36</div>
Note: See TracChangeset for help on using the changeset viewer.