幻灯片放映中的第一张幻灯片超时(持续时间几乎是其他幻灯片的两倍)
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>
您只需要删除其中一个块引号,您的问题就应该得到解决。
相关文章:
- 幻灯片滚动javascript不起作用
- 让文本输入幻灯片显示输入时的新文本输入?然后向后滑动
- 如何添加浮动和非浮动,其他
- 与其他库的jQuery.noConflict()
- 播放当前视频时如何停止其他视频?JavaScript
- 剑道UI内联编辑:如何在点击其他按钮时隐藏按钮
- 制作一个不带HTML a标记但在动画播放完毕后指向其他页面的超链接
- 除修剪外的其他功能
- 创建具有可变长度幻灯片显示的幻灯片
- 是什么让一个“;Uncaught RangeError:超过了最大调用堆栈大小“;错误(Chrome,在其他浏览器中显示
- Array.length似乎不起作用;console.log则显示其他情况
- 如何使用幻灯片显示其他图像
- 幻灯片放映中的第一张幻灯片超时(持续时间几乎是其他幻灯片的两倍)
- JavaScript幻灯片(从其他幻灯片开始,具体取决于一周中的哪一天)
- 幻灯片显示,像其他幻灯片一样将图像滑动进来
- JavaScript幻灯片(没有jQuery或任何其他库)
- 链接到滑动视图幻灯片上的其他页面
- jquery循环-你能针对特定的“;幻灯片“;来自其他页面
- 第一个幻灯片图像的显示速度比其他幻灯片图像慢
- 循环 2:寻呼机仅显示指向第一张幻灯片的链接并隐藏其他幻灯片