English 中文(简体)
Boots proceso Java Carousel don t End Cycling
原标题:Bootstrap JavaScript Carousel Doesn t Stop Cycling

<Twitter Boots Screen edition: 2.0.3

Example HTML code:

<!DOCTYPE html>
<html dir="ltr" lang="en-US" xmlns:og="http://opengraphprotocol.org/schema/">
<head>
<link rel="stylesheet" type="text/css" media="all" href="reddlec/style.css" />
<script type="text/javascript">
$(document).ready(function() {
    $( .carousel ).each(function(){
        $(this).carousel({
            pause: true,
            interval: false
        });
    });
});​
</script>
<script src="http://twitter.github.com/bootstrap/assets/js/jquery.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-transition.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-carousel.js"></script>
</head>
<body>
<div id="myCarousel" class="carousel slide">
  <!-- Carousel items -->
  <div class="carousel-inner">
    <div class="active item">…</div>
    <div class="item">…</div>
    <div class="item">…</div>
  </div>
  <!-- Carousel nav -->
  <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
  <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
</div>
</body>
</html>

<>CSS: 提供

<<>Problem>: 如你所知,我已使pa used Approach and Disability cycling/strong>。 但是,当我点击车轮左或右边控制时,车轮开始在停电时(每周期5秒)停泊。

我如何强行放弃? 我希望用户手工整理图像。

You can test the problem Live on my test website here

最佳回答

你们可能想设法消除“暂停”的属性。 如果你不自动穿透图像,就没有必要。 我的假设(以及我会看一看boot子法以核实)是,当“红外”事件火力时, cycl会恢复——即使它首先被击落。 它恢复使用违约速度。

解决办法是:

$(function() {
    $( .carousel ).each(function(){
        $(this).carousel({
            interval: false
        });
    });
});​
问题回答

一种可行的解决办法是,在车轮集装箱中添加数据-间隔=“false”:

<div id="myCarousel" class="carousel slide" data-interval="false">
    <div class="carousel-inner">
        <div class="active item">toto</div>
        <div class="item">tata</div>
        <div class="item">tutu</div>
    </div>
    <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
    <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>                                                                        
</div>

我刚刚提出这一问题的解决办法。 以上没有一人为我工作,但我确实看到了boot锁法。 我认为,造成这种ug的原因是boot锁。 j 违约标的档案:

  $.fn.carousel.defaults = {
    interval: 5000
  , pause:  hover 
  }

在滑坡之后,它最终恢复了这些违约值。 如果你不想lide倒,而且只能由用户控制,那么你就可以改变违约标语,使其相互脱节。 希望这一帮助。

  $.fn.carousel.defaults = {
    interval: false
  , pause:  hover 
  }
<div id="carousel-example-generic" class="carousel slide" data-wrap="false">

http://getpostsgil.com/javascript/#carousel

除了“@dgabriel”所建议的内容外,确实确保 Java的口号,即最初将诱使诱杀弹壳的警示是AFTER,<script>凡提到 j、boot-transition.js 和boot-carousel.js,其基本情况如下:

<script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/jquery.js"></script>
<script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-transition.js"></script>
<script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-carousel.js"></script>

<script type="text/javascript">
$(document).ready(function() {
    $( .gallery-carousel ).each(function(){
        $(this).carousel({
            interval: false
        });
    });
});
</script>

这确保了车轮照样(如>>条码) 不详 误差:美元没有定义(匿名功能),例如

我尝试了一切,但无所作为。 我在改变档案库的陷阱中,解决了这一问题。 你们必须寻找Ctrl+的“弹道”。 这些档案中的F部分替换了其中的内容:

interval:false 

事实上,改变boot锁的缺省。 j 帮助我。

Carousel.DEFAULTS = {
    interval: false,
    pause:  hover ,
    wrap: false
  }

I have some problem too doing Stop bootstrap Carousel from au页: 1playing. I checked bootstrap.js file and I have found codes related 页: 1carousel then I remove the another js. In new js file I make copy from all codes and then I change Carousel variable 页: 1Carousel_n(because it s possible 页: 1change it 页: 1anything you want). In last line of codes, the most important thing 页: 1do is:

 {  $( [data-ride="carousel"] ).each(function () }

页: 1

页: 1 我只作了改动:

<div id="Carousel" class="carousel slide" data-ride="carousel">

页: 1

<div id="Carousel" class="carousel slide" data-ride="carousel_n">

并且说,它确实发挥了作用。

$( your-carousel ).carousel({
pause: true,
interval: false
});




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.