Skip to content

Instantly share code, notes, and snippets.

@mraichelson
Created March 2, 2010 22:24
Show Gist options
  • Save mraichelson/320039 to your computer and use it in GitHub Desktop.
Save mraichelson/320039 to your computer and use it in GitHub Desktop.
// initialize slideshows
$j('div.module div.slideshow').each(function(i){
var theSS = 'slideShowMod'+i;
$j(this).attr('id',theSS);
var config = {
fx:'scrollHorz', // animation effect
speed:IIE.vars.animspeed,
timeout:0,
pager:'#'+theSS+' div.ctrl span.slides',
next:'#'+theSS+' a.next',
prev:'#'+theSS+' a.prev'
};
$j('#'+theSS+' ul.slides').cycle(config);
if($j('ul.slides>li',this).size()<2){
$j('#'+theSS+' div.ctrl').hide();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment