解决javascript 公告文字走马灯式轮播

jQuery Marquee,地址http://plugins.jquery.com/marquee/

<div class='marquee'>
	注意:请下载与您的******手机应用!
</div>
<script>
	$('.marquee').marquee({
	    //speed
	    duration: 5800,
	    //gap in pixels between the tickers
	    gap: 100,
	    //time in milliseconds before the marquee will start animating
	    delayBeforeStart: 0,
	    //'left' or 'right'
	    direction: 'left',
	    //true or false - should the marquee be duplicated to show an effect of continues flow
	    duplicated: false
	});
</script>

猜你喜欢

转载自blog.csdn.net/qq_40642021/article/details/86075708
今日推荐