//新闻动态上下滚动//3.方法functiont(){var he =$(".notice_active>ul>li").height();//找到li高$(".notice_active>ul").animate({"marginTop":"-"+ he
},500,function(){$(".notice_active>ul").css({"marginTop":0});//二选一//复制第一个到最后一个$(".notice_active>ul>li").eq(0).appendTo($(".notice_active>ul"));//复制第一个到最后一个(多个的情况) $(".notice_active_two>ul>li:eq(0),.notice_active_two>ul>li:eq(1),.notice_active_two>ul>li:eq(2)").appendTo($(".notice_active_two>ul"));});}//4. 触发方法//新闻动态var time =setInterval(function(){t();},5000)