JQuery先进的新闻播报

JQuery先进的新闻播报241
JQuery先进的新闻播报242
新闻播报是一个强大的jQuery先进、灵活和动画垂直滚动新闻插件。它提供了多个回调函数和方法允许最大的灵活性和一个简单的实现到任何项目。
有多种效果,具体可以看演示
多行播报
var nt_example1 = $('#nt-example1').newsTicker({
    row_height: 80,
    max_rows: 3,
    duration: 4000,
    prevButton: $('#nt-example1-prev'),
    nextButton: $('#nt-example1-next')
});


一行标题带详细的
var nt_example2 = $('#nt-example2').newsTicker({
	row_height: 60,
	max_rows: 1,
	speed: 300,
	duration: 6000,
	prevButton: $('#nt-example2-prev'),
	nextButton: $('#nt-example2-next'),
	hasMoved: function() {
    	$('#nt-example2-infos-container').fadeOut(200, function(){
        	$('#nt-example2-infos .infos-hour').text($('#nt-example2 li:first span').text());
        	$('#nt-example2-infos .infos-text').text($('#nt-example2 li:first').data('infos'));
        	$(this).fadeIn(400);
        });
    },
    pause: function() {
    	$('#nt-example2 li i').removeClass('fa-play').addClass('fa-pause');
    },
    unpause: function() {
    	$('#nt-example2 li i').removeClass('fa-pause').addClass('fa-play');
    }
});
$('#nt-example2-infos').hover(function() {
    nt_example2.newsTicker('pause');
}, function() {
    nt_example2.newsTicker('unpause');
});

也许你还喜欢