<script type="text/javascript">
$(function(){
var $this = $("#cNewsInfoDiv");
var scrollTimer;
$this.hover(
function(){
clearInterval(scrollTimer);
},
function(){
scrollTimer = setInterval(
function(){
scrollNews( $this );
},
2000);
}).trigger("mouseout");
});
function scrollNews(obj){
var $self = obj.find("ul:first");
var lineHeight = $self.find("li:first").height();
$self.animate({ "margin-top" : -lineHeight +"px" }, 2000,
function(){
$self.css({"margin-top":"0px"}).find("li:first").appendTo($self);
});
}
</script>
文章标题轮播展示
最新推荐文章于 2021-06-09 22:14:12 发布