风云体育
$(function() {
//icase
var pslide = $('#news_hd').switchable({
triggers: false,
triggersWrapCls:'news_tig',
putTriggers: 'appendTo',
panels: 'li',
effect: 'scrollLeft',
easing: 'ease-in-out',
steps: 1,
visible: 1,
end2end: true,
autoplay: true,
prev: '#prev',
next: $('#next'),
onSwitch: function(event, currentIndex) {
var api = this;
api.prevBtn.toggleClass('disabled', currentIndex === 0);
api.nextBtn.toggleClass('disabled', currentIndex === api.length - 1);
}
});
});
风云体育