Bootstrap Carousel (Carousel) plug-in

Source: Internet
Author: User
Tags bootstrap carousel

Url:

Http://www.ziqiangxuetang.com/bootstrap/bootstrap-carousel-plugin.html

<!DOCTYPE HTML><HTML><Head>   <title>Bootstrap Instance-Carousel (Carousel) plug-in method</title>   <Linkhref= "/bootstrap/css/bootstrap.min.css"rel= "stylesheet">   <Scriptsrc= "/scripts/jquery.min.js"></Script>   <Scriptsrc= "/bootstrap/js/bootstrap.min.js"></Script></Head><Body> <DivID= "Mycarousel"class= "Carousel Slide">   <!--Carousel (Carousel) Indicator -   <olclass= "Carousel-indicators">      <LiData-target= "#myCarousel"data-slide-to= "0"class= "Active"></Li>      <LiData-target= "#myCarousel"data-slide-to= "1"></Li>      <LiData-target= "#myCarousel"data-slide-to= "2"></Li>   </ol>     <!--Carousel (Carousel) Project -   <Divclass= "Carousel-inner">      <Divclass= "Item Active">         <imgsrc= "/media/uploads/2014/07/slide1.png"alt= "First Slide">      </Div>      <Divclass= "Item">         <imgsrc= "/media/uploads/2014/07/slide2.png"alt= "Second Slide">      </Div>      <Divclass= "Item">         <imgsrc= "/media/uploads/2014/07/slide3.png"alt= "Third Slide">      </Div>   </Div>   <!--Carousel (Carousel) Navigation -   <aclass= "Carousel-control Left"href= "#myCarousel"Data-slide= "Prev">&lsaquo;</a>   <aclass= "Carousel-control Right"href= "#myCarousel"Data-slide= "Next">&rsaquo;</a>   <!--control button -   <Divstyle= "Text-align:center;">      <inputtype= "button"class= "Btn start-slide"value= "Start">      <inputtype= "button"class= "Btn pause-slide"value= "Pause">      <inputtype= "button"class= "Btn prev-slide"value= "Previous Slide">      <inputtype= "button"class= "Btn next-slide"value= "Next Slide">      <inputtype= "button"class= "Btn Slide-one"value= "Slide 1">      <inputtype= "button"class= "Btn slide-two"value= "Slide 2">                 <inputtype= "button"class= "Btn Slide-three"value= "Slide 3">   </Div></Div><Script>   $(function(){      //Initialize the Carousel      $(". Start-slide"). Click (function(){         $("#myCarousel"). Carousel ('Cycle');      }); //Stop Carousel      $(". Pause-slide"). Click (function(){         $("#myCarousel"). Carousel ('Pause');      }); //cycle round to previous project      $(". Prev-slide"). Click (function(){         $("#myCarousel"). Carousel ('prev');      }); //cycle the carousel to the next item      $(". Next-slide"). Click (function(){         $("#myCarousel"). Carousel ('Next');      }); //cycle round to a specific frame      $(". Slide-one"). Click (function(){         $("#myCarousel"). Carousel (0);      }); $(". Slide-two"). Click (function(){         $("#myCarousel"). Carousel (1);      }); $(". Slide-three"). Click (function(){         $("#myCarousel"). Carousel (2);   }); });</Script>  </Body></HTML>

Bootstrap Carousel (Carousel) plug-in

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.