{define_derivative name='carousel' width='300' height='300' min_width='300'} {php} global $page, $template; $template->assign('cat_name', $page['category']['name']); global $Slim; $this->assign( 'Slim', $Slim ); {/php}
{footer_script}{literal} function mycarousel_initCallback(carousel) { // Pause autoscrolling if the user moves with the cursor over the clip. carousel.clip.hover(function() { carousel.stopAuto(); }, function() { carousel.startAuto(); }); }; jQuery(document).ready(function() { jQuery('#carousel').jcarousel({ auto: 0, wrap: 'circular', scroll: 2, initCallback: mycarousel_initCallback, }); }); {/literal}{/footer_script}