首页 > 语言 > JavaScript > 正文

新闻上下滚动jquery 超简洁(必看篇)

2024-05-06 15:02:15
字体:
来源:转载
供稿:网友

实例如下:

<div class = "box">	<dl class="textlist">		<dd>11你好,欢迎来到错新站长站</dd>		<dd>22你好,欢迎来到错新站长站</dd>		<dd>33你好,欢迎来到错新站长站</dd>		<dd>44你好,欢迎来到错新站长站</dd>		<dd>55你好,欢迎来到错新站长站</dd>	</dl></div><script>		$(function(){			function GoUp(){				$(".textlist").animate({top,-30},500,function(){					$(".textlist").css({top,0});					$(".textlist dd:first").insertAfter(".textlist dd:last")				});			}			setInterval(GoUp,1000)				})	</script></body>

以上这篇新闻上下滚动jquery 超简洁(必看篇)就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持错新站长站。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选