将控件添加到Jquery Carousel

时间:2016-09-02 05:56:07

标签: javascript jquery

我正在尝试将控件添加到一个简单的jquery轮播,但我不知道该怎么做。我已经尝试了其他几个教程,但我并没有真正理解他们的方法。 这就是我所拥有的

<div id='carousel_container'>
   <div id='carousel'>
     <ul>
         <li><a href='#'><img src='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSExIWExMVFRUYFRcYEBUWFxUWFxYYGBUVFRgYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGy0lICYtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIALoBDwMBEQACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAABQYCAwQBB//EADkQAAIBAgQDBQcCBQQDAAAAAAABAgMRBAUhMRJBUQYiYXGBEzKRobHR8FLBByNCguFDYnLxFZLC/8QAGgEBAAMBAQEAAAAAAAAAAAAAAAMEBQIBBv/EAC8RAQACAgICAQMDAwQCAwAAAAABAgMRBCESMQUTIkFRYaEyQpEGFHGBUrEVIzP/2gAMAwEAAhEDEQA/APuIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANVSrblcrZc8457jp1FdtdPGwd+8rrlz+Bxj52K35dzhvH4boVYvZp+pYrlpb1Lia2j3DMkcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOfEN8mvKWxQ5NrV/pmP+JSUiPyhsySku9HgfJ7r47nz/MyRePujxn9fwv4N1n7Z2gMVdc722lFu/xRk/UvWepamPxn8f5b8D2mrUtJ/wA2HXaa9eZscX5jNSNX7j+UWb4zFk7p9s/wtGWZ1SrpcMrS/S9H6dT6Djc/Fn/pnv8ARj8jh5cM/d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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8auBpWFje5x9ON7deUt525AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//Z'/></a></li>
         <li><a href='#'><img src='https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSEozDag41Q5mhuWD45Bbq-9QaNU66CrokuWBd_oBjQ4n8wn70jkA'/></a></li>
         <li><a href='#'><img src='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAQDw8PDxAPDw8PDw8PDw8PDw8PDw8PFRUWFhURFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGi0dHR8tLS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tNy0tLS0tN//AABEIAM8A9AMBEQACEQEDEQH/xAAbAAEAAwEBAQEAAAAAAAAAAAAAAQMEAgUGB//EADUQAAIBAgQFAgYBAwMFAAAAAAABAgMRBAUhMRJBUWFxgZEGEyIyobHRUuHxI3LBBxQWQmL/xAAaAQEAAwEBAQAAAAAAAAAAAAAAAgMEAQUG/8QAKhEBAAICAgIBAwQCAwEAAAAAAAECAxEEIRIxQQUiURMyYXEUgSNCkRX/2gAMAwEAAhEDEQA/AP28AAAAAAACQAEAAAEgQAAAAAAAAAAAAAAAAAAACwACQIAAAAAAAAAAAAAAAAAAAA3YAAAAAAAABIEAAAAAAAAAAAAAAAAAAAAAAAAADiT5BKIV0KuvC9+XcqpfvxlK9etwvLVYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARIOwrm+fTcjaUoYsc3H6lutUY88+M+UNGLvqXoUp8UVLqkzbWdxEsto1OnR1wA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ln4hppDdl+H4Y3e7NvGxeFd/LNmyeU6azSoAAFc+iIylCmp0RCY+FkLKULInWukbW2mbtu0ctOo9uRDwsbN1JXey+1f8APk8XlXnJb+HpYaxSGb5Jnii7zdww1zTjxyha61YFGqtfFRNttGDy+nKX1wUkk2k9i7Du1u1GXUV6ezTpRirRiorokka4iI9M25l0dcAKMXDiSXcqy18o0sxzqdsmHTi12KMUTWdL7zFoejF3NjJMaSAAAAAAABIEMCmRyVkKazKMk9LKQy0KXHNdFqzNix+d1t7eNXrI9FiAAADiSDsOFDqR0ntOnUTpztRi5fS7LfRvsUZ7ar0sxR9zzVD8nmxTbZt3GiW1xIzdrpYbr/g1VxaUWybJ8/ZCzkLcFHWXoieCPco5p6hrNKgAAczQdiVTgQmqe1lMmhZYHEAAAAAAAARJgUyZyVkQzVmZsnfS6v5acJS4Y92W4qeMKsl9yvLVQAAAAOJB2Nub9ER/pL+2fF3cbd9ijPEzXS3H1KijRbZTjxLL3iGynRsaox6UWvt3JciU/hGFNRfgqtVZErsNC0e71ZZjrqqvJbcrSxAAAAIaDuyKDiQAAAAAkCAJArqs67DPJkLLYTRpXd3sQrT5ktfXpqLVIAAAAAHMg7CuTfg5O0oc/LuQmu0vLS6ELKxOI0rmdpaOkK30OSk5UbvsiHi7vULyxWAAAAAAAAAAAAAAAAKK0ruyOpQU6XUjp2bL0jqAAAAAAACGgCigbSAAMDhxDu3SVg4kAAAAAAACQIAAAAAAAAWAAAAAAAAAAAAAAAAAAAAAAAAAAAB//9k='/></a></li>
       </ul>
      <div id='controls'>
       <!--left button-->
       <a href='#' id='prev'>prev</a>
        <a href='#' id='next'>next</a>
     </div>
   </div>
</div>

$(document).ready(function(){

    var interval = setInterval(function(){
    $('#carousel ul').animate({marginLeft:-480},1000,function(){
    $(this).find('li:last').after($(this).find('li:first'));
    $(this).css({marginLeft:0});
    })
  },5000);


      $('#next').click(function(){
    $('#carousel ul').animate({marginLeft:-480},1000,function(){
         $(this).find('li:last').after($(this).find('li:first'));
         $(this).css({marginLeft:0});
    });
    return false;
  });

  $('#prev').click(function(){
    $('#carousel ul').animate({marginLeft:480},1000,function(){
         $(this).find('li:last').after($(this).find('li:first'));
         $(this).css({marginLeft:0});
    });
    return false;
  });

});

#carousel{
  width:480px;
  overflow:hidden;
}

#carousel ul{
  width:1920px;
  padding:0;
  margin:0;
}

#carousel ul li{
  width:480px;
  text-align:center;
  height:280px;
  list-style:none;
  float:left;
}

https://jsfiddle.net/amosangyongjian/4jan3t10/2/

希望有人可以帮忙解决这个问题。谢谢!

3 个答案:

答案 0 :(得分:0)

您可以按照下面的转码代码:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet"
	href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script
	src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
.carousel-inner>.item>img,.carousel-inner>.item>a>img {
	width: 70%;
	margin: auto;
}
</style>
<div class="container">
	<br>
	<div id="myCarousel" class="carousel slide" data-ride="carousel">
		<!-- Indicators -->
		<ol class="carousel-indicators">
			<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
			<li data-target="#myCarousel" data-slide-to="1"></li>
			<li data-target="#myCarousel" data-slide-to="2"></li>
			
		</ol>

		<!-- Wrapper for slides -->
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<a href='#'><img
					src='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSExIWExMVFRUYFRcYEBUWFxUWFxYYGBUVFRgYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGy0lICYtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIALoBDwMBEQACEQEDEQH/xA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PHNtWRT5G7RqE+LUTuVbzKpbux1fN/nIw+RX+2rW48b+6z3s/kam/aT1gnov1tf8Ayiz8dwN//Zd5zebNY+nT3/6W832GAYVaiim27JHNrRWNy9rWbTqEJKhLGSvK8cPF6R2dR+PgZ/jblW3PVI/lfi9eLX7e7z+f0Sc6MYR4YJQilyVrImyUitfGvUKsXm1t27lDYx9Fb9K+smY2f9l/FH6omtVa29PJafNlH6169QvUrE+1xy6lw04p72V/M+s41ZjHG/bBz28rzLpJ0QAAAAAAAAAAAAAAAAAAAAAAAADyRHZhOyZTzz0tYY7Q+DwDrT6QT7z6/wC1ePiUcPHnLbv0vZc8Ya9e1nhBJJJWS0SNqIiI1DImZmdyyPXgBpxGHU9Ht0I8mOL+3dLzX02xikrLRI7iIiNQ5md9y04i1tdiHLEad09obEwf90tF4IyctJ/7lfx2/wAQ4cPhOOrFJacS/wDWJTw8eb5Yj8b/AIWMmXwxzK3H1LEAAAAAAAAAAAAAAAAAAAAAAAAAB4zyRw4zDSnotOr6Iq5cVr9LGPJFO3XQoqEVGKsl+XLFKRSNQhvabTuWw7cgAAAA5cWra8iPJXbuttI+sr36vTyXMoZKyt0tDqyvC8N5NWurRXRdfUm4uDx+6UWfL5fbCQLqsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8auBpWFje5x9ON7deUt525AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//Z' /></a>
			</div>

			<div class="item">
				<a href='#'><img
					src='https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSEozDag41Q5mhuWD45Bbq-9QaNU66CrokuWBd_oBjQ4n8wn70jkA' /></a>
			</div>

			<div class="item">
				<a href='#'><img
					src='data:image/jpeg;base64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CPco5p6hrNKgAAczQdiVTgQmqe1lMmhZYHEAAAAAAAARJgUyZyVkQzVmZsnfS6v5acJS4Y92W4qeMKsl9yvLVQAAAAOJB2Nub9ER/pL+2fF3cbd9ijPEzXS3H1KijRbZTjxLL3iGynRsaox6UWvt3JciU/hGFNRfgqtVZErsNC0e71ZZjrqqvJbcrSxAAAAIaDuyKDiQAAAAAkCAJArqs67DPJkLLYTRpXd3sQrT5ktfXpqLVIAAAAAHMg7CuTfg5O0oc/LuQmu0vLS6ELKxOI0rmdpaOkK30OSk5UbvsiHi7vULyxWAAAAAAAAAAAAAAAAKK0ruyOpQU6XUjp2bL0jqAAAAAAACGgCigbSAAMDhxDu3SVg4kAAAAAAACQIAAAAAAAAWAAAAAAAAAAAAAAAAAAAAAAAAAAAB//9k=' /></a>
			</div>


		</div>

		<!-- Left and right controls -->
		<a class="left carousel-control" href="#myCarousel" role="button"
			data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"
			aria-hidden="true"></span> <span class="sr-only">Previous</span>
		</a> <a class="right carousel-control" href="#myCarousel" role="button"
			data-slide="next"> <span
			class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
			<span class="sr-only">Next</span>
		</a>
	</div>
</div>

如有任何疑问,请与我们联系

答案 1 :(得分:0)

您的prev链接功能不正确。将以下代码替换为prev jQuery代码:

$('#prev').click(function() {
            $('#carousel ul').animate({
                marginLeft : 480
            }, 1000, function() {
                $(this).find('li:first').before($(this).find('li:last'));
                $(this).css({
                    marginLeft : 0
                });
            });
            return false;
        });

答案 2 :(得分:0)

按如下所示更改下一个和上一个按钮代码。它会工作。在第一个答案中使用bootstrap时,此脚本不再必要。

$('#prev').click(function () {
    $('#carousel ul').find('li:first').before($('#carousel ul').find('li:last'));
});

$('#next').click(function () {
    $('#carousel ul').find('li:last').after($('#carousel ul').find('li:first'));

});