<script src="http://sivop.com/version_3/js/infos_du_jour/jquery.cbpFWSlider.min.js"></script> <script type="text/javascript"> $('document').ready(function(){ // init slider $('#cbp-fwslider').cbpFWSlider(); /** Set a 3 seconds interval if next button is visible (so is not the last slide) click next button else it finds first dot and click it to start from the 1st slide **/ setInterval( function(){ if($('.cbp-fwnext').is(":visible")) { $('.cbp-fwnext').click(); } else{ $('.cbp-fwdots').find('span').click(); } } ,3000 ); }); </script>
seulement avec 2 slider... il ne boucle pas toutes les images :s
$('document').ready(function(){ // init slider $('#cbp-fwslider').cbpFWSlider(); /** Set a 3 seconds interval if next button is visible (so is not the last slide) click next button else it finds first dot and click it to start from the 1st slide **/ setInterval( function(){ if($('.cbp-fwnext').is(":visible")) { console.log(" Bouton Next Visible"); $('.cbp-fwnext').click(); } else{ console.log(" Bouton Next NON Visible"); $('.cbp-fwdots').find('span').click(); } } ,3000 ); });
image | Titre | Description =================================================================== version3 | Version 3 du site | Lancement de la version 3 tg_hello_kitty | Hello Kitty | Lancement de la version 3 socials | Participez ! | Lancement de la version 3
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question