新年
快乐
jQuery仿简书首页幻灯片图片切换效果

jQuery仿简书首页幻灯片图片切换效果

jQuery仿简书首页幻灯片图片切换效果插图

这是一款很漂亮的网站焦点图轮播代码,jQuery仿简书首页幻灯片图片切换效果,一张大图和两张小图交替切换。

js代码

<script src="https://img.x22t.com/file/2020/04/25/25d70a95c6a93c4b470126d83324ec8e6661.js"></script>
<script type="text/javascript">
	window.onload = function(){
		var banner = new Carousel();
		//图片地址数组。不要少于三张
		var imgSrcDate = ["img/a1.png","img/a2.png","img/a3.png","img/a4.png","img/a5.png","img/a6.png"];
		banner.init({
			container:"#banner",
			datas:imgSrcDate,
			autoplaySpeed:5000,
			autoplay:false
		});
	}
</script>

分享到 :
相关推荐

Leave a Reply

Your email address will not be published. Required fields are marked *