Changeset 25998 for extensions/Slimi/template/mainpage_categories.tpl
- Timestamp:
- Dec 17, 2013, 11:25:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Slimi/template/mainpage_categories.tpl
r18917 r25998 1 1 {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"> 11 3 <div id="wrap"> 12 <ul id="carousel" class="jcarousel-skin-cat">13 4 <div class="jcarousel"> 5 <ul> 14 6 {foreach from=$category_thumbnails item=cat} 15 16 17 7 <li> 18 8 <div class="illustration"> … … 40 30 {/foreach} 41 31 </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}72 32 </div> 73 33 </div> 74 34 <a href="#" class="jcarousel-control-prev">‹</a> 35 <a href="#" class="jcarousel-control-next">›</a> 36 </div>
Note: See TracChangeset
for help on using the changeset viewer.