在幻灯片显示之前尝试更改css。它适用于第一张幻灯片,但其余部分则被忽略了?我这样做的方式有问题吗?
任何指示赞赏!
function startFullscreenCycle(){
$('div.gallery').cycle({
fx: 'fade',
before: onBefore,
speed: 220,
timeout: 5500,
pager: '#slideNumbers',
pagerAnchorBuilder: pagerFactory
});
}
function pagerFactory(idx, slide) {
return '<a href="#" class="emm-page" >'+(idx+1)+'</a>';
};
function onBefore(currSlide,currSlideElement,opts){
$(currSlideElement).css('top','200px');
}
链接http://aba.modernactivity.co.uk/projects/belsize-lane/124/(点击全屏)