您的位置:首页 > Web前端 > JQuery

jQuery文字上下滚动

2014-07-22 10:52 253 查看
jQuery文字淡入淡出:

function scrollNews() {
$('#ulInformation li').eq(0).fadeOut('slow', function() {
$(this).clone().appendTo($(this).parent()).fadeIn('slow');
$(this).remove();
});
}

setInterval('scrollNews()', 3000);

jQuery文字上下滚动:

function scrollNews() {

$('#ulInformation li:first').animate({ marginTop: "-30px" }, 'slow', function() {
$(this).css({ marginTop: "0px" }).clone().appendTo($(this).parent());
$(this).remove();

});

}

setInterval('scrollNews()', 3000);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: