简体   繁体   English

带有自定义缩略图滑块的Flexslider

[英]Flexslider with custom thumbnail slider

I've tried to customize a Flexslider with a thumbnail slider by adding some information and a button in the thumbnail. 我试图通过在缩略图中添加一些信息和按钮来自定义带有缩略图滑块的Flexslider。 If you click on the thumbnail, the slider slides to the right slide. 如果单击缩略图,则滑块会滑到右侧幻灯片。 But if you click on the added link(in the thumbnail) you don't go to a URL behind it. 但是,如果单击添加的链接(在缩略图中),则不会转到其后面的URL。

How can I make this to work? 我该如何运作?

This is the code that i've been using: 这是我一直在使用的代码:

 <div id="carousel"> <ul class="slides cntr cb"> <li> <div class="image"><img src="url" alt=""></div> <div class="info"> <p>Title</p> <div class="more"> <span>Date</span> | <a href="http://link.com" title="ticket">BUTTON</a> </div> </div> </li> <li> <div class="image"><img src="url" alt=""></div> <div class="info"> <p>Title</p> <div class="more"> <span>Date</span> | <a href="http://link.com" title="ticket">BUTTON</a> </div> </div> </li> </ul> </div> 

I fixed it with a simple javascript onclick function, I don't now if this is the best way to fix it. 我用一个简单的javascript onclick函数修复了它,如果这是修复它的最佳方法,我现在不知道。 But hey, it works for now 但是,嘿,它暂时有效

 onclick="window.open('http://www.url.com', '_self')" 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM