• Resolved martineva

    (@martineva)


    Hi !
    Thank you for your support about my “change slide” issue … again I feel so noob to ask but I didn’t succeed to create next/previous buttons …
    i tried `<button id=”next”>Suivant</button>

    <script type=”text/javascript”>
    var playing = true;

    (function($) {
    $(document).ready(function() {
    $(‘#next’).click(function() {
    $(‘.crellyslider-slider-your_slider_alias‘).data(‘crellySlider’).nextSlide();

    });
    });
    })(jQuery);
    </script>`
    but I’m wrong.
    Can you help please ?
    thank you

    https://www.ads-software.com/plugins/crelly-slider/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fabio Rinaldi

    (@fabiorino)

    For the Next Slide button:

    <button id="next">Next Slide</button>
    <script type="text/javascript">
    	(function($) {
    	$(document).ready(function() {
    		$('#next').click(function() {
    			$('.crellyslider-slider-your_slider_alias').data('crellySlider').nextSlide();
    		});
    	});
    	})(jQuery);
    </script>

    For the Previous Slide button:

    <button id="prev">Previous Slide</button>
    <script type="text/javascript">
    	(function($) {
    	$(document).ready(function() {
    		$('#prev').click(function() {
    			$('.crellyslider-slider-your_slider_alias').data('crellySlider').previousSlide();
    		});
    	});
    	})(jQuery);
    </script>
    Thread Starter martineva

    (@martineva)

    Thank youuuuu !

    Plugin Author Fabio Rinaldi

    (@fabiorino)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘next and previous buttons’ is closed to new replies.