幻灯片放映中第一张幻灯片的超时不起作用(持续时间几乎是其他幻灯片的两倍)

Timeout for first slide in slideshow not working (lasts almost double other slides)

我在网站上使用响应式幻灯片 (http://responsiveslides.com/) 进行一些推荐,设置如下:

jQuery(".rslides").responsiveSlides({
  auto: true,             // Boolean: Animate automatically, true or false
  speed: 100,            // Integer: Speed of the transition, in milliseconds
  timeout: 10000,          // Integer: Time between slide transitions, in milliseconds
  pager: false,           // Boolean: Show pager, true or false
  nav: true,             // Boolean: Show navigation, true or false
  random: false,          // Boolean: Randomize the order of the slides, true or false
  pause: true,           // Boolean: Pause on hover, true or false
  pauseControls: true,    // Boolean: Pause when hovering controls, true or false
  prevText: "Previous",   // String: Text for the "previous" button
  nextText: "Next",       // String: Text for the "next" button
  maxwidth: "",           // Integer: Max-width of the slideshow, in pixels
  navContainer: "",       // Selector: Where controls should be appended to, default is after the 'ul'
  manualControls: "",     // Selector: Declare custom pager navigation
  namespace: "rslides",   // String: Change the default namespace used
  before: function(){},   // Function: Before callback
  after: function(){}     // Function: After callback
});

但是,第一张幻灯片的时长几乎是其他幻灯片的两倍。有谁知道如何解决这个问题或为什么会这样?任何帮助将不胜感激!

您可以在此页面看到错误:http://www.hbprojectsltd.co.uk/testimonials

原因是因为你有两次相同的推荐。

如果您查看页面的源代码,就会发现第一个推荐与第二个完全相同。幻灯片动画正在发生,但因为它看起来一样,所以看起来好像什么都没发生。

参见此处(第 97 - 110 行):

<li>
  <blockquote class="testiquote">I have worked with HB Projects for circa 10 years although the company has worked for ASDA for significantly longer than that. HB are a mainstay of the ASDA Construction supplier base and have a turnover with us of circa £20m p.a. I have always found
    the team at HB Projects to be proactive, innovative and forward thinking. The quality of their work is always of a high standard and they always deliver on time and to cost. Snagging is resolved quickly and efficiently. Colleagues and Management undergo
    rigorous training and can be trusted to ensure individuals have appropriate qualifications for the level of work involved.
    <br />
    <br />I would be happy to give my full endorsement to HB Projects to undertake any schemes you have planned. I can confirm they have the skill-set to undertake all facets of construction work, from design to build and management of your project. I have
    always found the HB team honest and trustworthy. They have helped us deliver our mission to be Britain’s best value retailer and are considered a true partner to ASDA.
  </blockquote>
  <div class="endtestiquote"></div>
  <div class="quotefrom">
    <p><span class="bluefont bold">Richard Wilson</span>
      <br />Construction Manager, Construction & Facilities, Property & Format Development, Asda House.</p>
  </div>
</li>
<li>
  <blockquote class="testiquote">I have worked with HB Projects for circa 10 years although the company has worked for ASDA for significantly longer than that. HB are a mainstay of the ASDA Construction supplier base and have a turnover with us of circa £20m p.a. I have always found
    the team at HB Projects to be proactive, innovative and forward thinking. The quality of their work is always of a high standard and they always deliver on time and to cost. Snagging is resolved quickly and efficiently. Colleagues and Management undergo
    rigorous training and can be trusted to ensure individuals have appropriate qualifications for the level of work involved.
    <br />
    <br />I would be happy to give my full endorsement to HB Projects to undertake any schemes you have planned. I can confirm they have the skill-set to undertake all facets of construction work, from design to build and management of your project. I have
    always found the HB team honest and trustworthy. They have helped us deliver our mission to be Britain’s best value retailer and are considered a true partner to ASDA.
  </blockquote>
  <div class="endtestiquote"></div>
  <div class="quotefrom">
    <p><span class="bluefont bold">Richard Wilson</span>
      <br />Construction Manager, Construction & Facilities, Property & Format Development, Asda House.</p>
  </div>
</li>

您只需删除其中一个块引号,您的问题就会得到解决。