Bootstrap's deployment usel works with dropload. js to implement sliding switching between images on mobile terminals,

Source: Internet
Author: User

Bootstrap's deployment usel works with dropload. js to implement sliding switching between images on mobile terminals,

A slideshow can jump to the previous or next one by clicking the button. On the Mobile End, we often use sliding to achieve some time. How can we achieve this.

The following describes how to use bootstrap's pluusel and dropload. js (mobile push and refresh plug-ins.

HTML section

<div id="goods_lunbo" style="width:200%;overflow:hidden;margin-left:-50%;">    <div id="goods_lunbo2" style="width:50%;overflow:hidden;margin:0 auto;">     <div id="carousel-example-generic0" class="carousel slide" data-ride="carousel">      <!-- Indicators -->      <ol class="carousel-indicators">       <li data-target="#carousel-example-generic0" data-slide-to="0" class="active"></li>       <li data-target="#carousel-example-generic0" data-slide-to="1"></li>       <li data-target="#carousel-example-generic0" data-slide-to="2"></li>      </ol>      <!-- Wrapper for slides -->      <div class="carousel-inner" id="carousel-inner-z" role="listbox">       <div class="item active">                <!--<div class="carousel-caption"></div>-->       </div>       <div class="item">                <!--<div class="carousel-caption"></div>-->       </div>       <div class="item">                <!--<div class="carousel-caption"></div>-->       </div>      </div>     </div>    </div>   </div>

JS Section

Var invalid usel _ = $ ("# carousel-example-generic0"); $ ("# goods_lunbo "). touchwipe ({ReferenceMaterial: "# goods_lunbo2", // sets the div distance: 100, // indicates the sliding distance from wipeLeftFn: function () {console. log ("Zuo zuozo"); carousel _. carousel ('prev');}, // move the screen wipeRightFn: function () {console. log (""); carousel _. carousel ('Next') ;}, // sliding the screen to the right nowipe: function (){}});

The above section describes how Bootstrap's deployment usel works with dropload. js enables moving and switching images on the mobile end. I hope this will help you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!

Related Article

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.