1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > html新闻上下自动滚动代码 jQuery网站公告上下滚动自动轮播代码

html新闻上下自动滚动代码 jQuery网站公告上下滚动自动轮播代码

时间:2022-02-28 13:52:34

相关推荐

html新闻上下自动滚动代码 jQuery网站公告上下滚动自动轮播代码

js代码

function timer(opj){

$(opj).find('ul').animate({

marginTop : "-3.5rem"

},500,function(){

$(this).css({marginTop : "0.7rem"}).find("li:first").appendTo(this);

})

}

$(function(){

var num = $('.notice_active').find('li').length;

if(num > 1){

var time=setInterval('timer(".notice_active")',3500);

$('.gg_more a').mousemove(function(){

clearInterval(time);

}).mouseout(function(){

time = setInterval('timer(".notice_active")',3500);

});

}

$(".news_ck").click(function(){

location.href = $(".notice_active .notice_active_ch").children(":input").val();

})

});

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。