0
I’m making website and this link http://atomica.com.br/clientes/usinavertente/site/nossa-historia.php after I finished the client is asking so that when arriving at the last slide of each date go to next date, but I could not adapt to what was already done someone has some tip to give?
HTML
<div class="datas">
<div class="container">
<div class="controle">
<a href="javascript:;" class="pager-prev">-</a>
<a href="javascript:;" class="pager-next">+</a>
</div>
<ul class="menu">
<li><a href="" title="2003" data-slide-index="0">2003</a></li>
<li><a href="" title="2004" data-slide-index="1">2004</a></li>
<li><a href="" title="2006" data-slide-index="2">2006</a></li>
<li><a href="" title="2008" data-slide-index="3">2008</a></li>
<li><a href="" title="2010" data-slide-index="4">2010</a></li>
<li><a href="" title="2012" data-slide-index="5">2012</a></li>
<li><a href="" title="2014" data-slide-index="6">2014</a></li>
<li><a href="" title="2016" data-slide-index="7">2016</a></li>
</ul>
<ul class="bxslider">
<li>
<div class="my-slider">
<ul>
<li><h3>Captação de água industrial (Rio Grande)</h3><img src="img/2003-1.jpg.png" alt="Captação de água industrial (Rio Grande)"></li>
<li><h3>Construções Civis</h3><img src="img/2003-2.jpg.png" alt="Construções Civis"></li>
<li><h3> Montagem</h3><img src="img/2003-3.jpg.png" alt=" Montagem"></li>
<li><h3>Montagem (vista aérea geral)</h3><img src="img/2003-4.jpg.png" alt="Montagem (vista aérea geral)"></li>
</ul>
</div>
</li>
<li>
<div class="my-slider">
<ul>
<li><h3> Início da produção do Álcool e Açúcar</h3><img src="img/2004-1.jpg.png" alt=" Início da produção do Álcool e Açúcar"></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
SCRIPT FOR TAB
<script>
$(window).load(function(){
var slider = $('.bxslider').bxSlider({
pagerCustom: '.menu'
});
$('a.pager-prev').click(function (e) {
var current = slider.getCurrentSlide();
slider.goToPrevSlide(current) - 1;
e.preventDefaut();
});
$('a.pager-next').click(function (e) {
var current = slider.getCurrentSlide();
slider.goToNextSlide(current) + 1;
e.preventDefaut();
});
return false;
});
</script>
SLIDE SCRIPT
<script>
jQuery(document).ready(function($) {
$('.my-slider').unslider();
infinite:true;
});
</script>
Please, if possible, supplement the question with code snippets relevant to this part of your project, in order to tell you how to do it, you need to know how you are doing it. You are using a library in Jquery ?
– Lucas Queiroz Ribeiro
See if it’s good now
– user4451
Yes, never worked with this library, I will give an answer if it does not work let me know that I will try to modify
– Lucas Queiroz Ribeiro
Lucas Queiroz I had to use two pq was not managing to give all functions I would need, I am not mto good of back-end is more front
– user4451
I answered, but only to complement, Javascript is Front-End :) kkkkk
– Lucas Queiroz Ribeiro
Lucas Queiros For me to create a javascript from scratch is not front-end, now manipulating library is something else, in this case I said this because I did not find how to do it and I do not know how to create one from scratch, tendeu?
– user4451