[英]jQuery EasySlider 1.7, customized button doesn't work
So I'm kind of new to jQuery, but I can't see why the "Next" button doesn't work. 因此,我是jQuery的新手,但是我看不到为什么“下一步”按钮不起作用。 The "Previous" button works just fine. “上一个”按钮可以正常工作。
You cannot see the previous button here because there's no previous slide, but I have tried with enabling the text option and going to the next slide and it works just fine. 您在这里看不到上一个按钮,因为没有上一张幻灯片,但是我尝试启用文本选项并转到下一张幻灯片,它工作正常。
I'm applying the same code to the "next" button, but it just doesn't work. 我正在将相同的代码应用于“下一个”按钮,但是它不起作用。 Any idea? 任何想法?
Here is the part which doesn't seem to work the way it's supposed to. 这部分似乎没有按照预期的方式工作。
<span id="nextBtn"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('down','','_img/downover.png',1)"><img src="_img/down.png" alt="Browse Down" name="down" width="53" height="35" hspace="130" border="0"></a></span>
This is odd, because the same lines of code for transition to the previous slide works perfectly: 这很奇怪,因为用于过渡到上一张幻灯片的相同代码行非常有效:
<span id="prevBtn"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('up','','_img/upover.png',1)"><img src="_img/up.png" alt="Browse Up" hspace="130" name="up" width="53" height="35" border="0"></a></span>
I think you have duplicated buttons, because the script automatically adds "previous" and "next" spans with the desired id. 我认为您有重复的按钮,因为脚本会自动添加具有所需ID的“上一个”和“下一个”跨度。
Try removing your prev/next tags and let the script creating it, or set controlsShow: False
尝试删除您的prev / next标签,并让脚本创建它,或者设置controlsShow: False
ATTENTION: If anybody still has problem with multiple sliders in vertical mode, just use the 1.5 release. 注意:如果仍然有人在垂直模式下使用多个滑块仍然有问题,请使用1.5版本。 1.7 seems to have a bug which prevents the buttons from working properly. 1.7似乎有一个错误,使按钮无法正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.