Created
March 2, 2010 22:24
-
-
Save mraichelson/320039 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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