注册 登录 充值会员 退出
联系客服 毕业设计 java源码 PHP源码
充值

jQuery图文卡片左右滚动代码

作者/代码整理:  (源码已亲测,不会安装的可以向QQ1915635791要安装视频教程) 发布日期:2024-03-14
jQuery图文卡片左右滚动代码
样式挺漂亮的一款jQuery图文卡片左右滚动代码,鼠标悬停卡片时边框和文字会有高亮突出显示效果,通过左右箭头按钮控制滚动。


js代码

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
var _index5=0;

$("#four_flash .but_right img").click(function(){
	_index5++;
	var len=$(".flashBg ul.mobile li").length;
	if(_index5+5>len){
		$("#four_flash .flashBg ul.mobile").stop().append($("ul.mobile").html());
	}
	$("#four_flash .flashBg ul.mobile").stop().animate({left:-_index5*326},1000);
});

$("#four_flash .but_left img").click(function(){
	if(_index5==0){
		$("ul.mobile").prepend($("ul.mobile").html());
		$("ul.mobile").css("left","-1380px");
		_index5=6
	}
	_index5--;
	$("#four_flash .flashBg ul.mobile").stop().animate({left:-_index5*326},1000);
});
</script>

关注公众号,免费赠送安装视频教程、环境和学习视频,后面会不断更新。