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

    (@fabiorino)

    Yes it’s possible, but you need to know some HTML and javascript.
    Scroll at the end of the documentation (http://fabiorino1.altervista.org/projects/crellyslider/documentation/). I wrote how to use the API of the plugin. If you need some help, please ask me!

    Thread Starter martineva

    (@martineva)

    Thank you for your quick answering !
    Indeed I had read this part of documentation, but I’m sooooo noob in javascript …
    Could you please explain me the steps I should do if I want for example to set a button that links me to slide “3” even if I’m on slide “1” ?
    Thank you a lot for this very nice plugin, by the way 😀

    Plugin Author Fabio Rinaldi

    (@fabiorino)

    Sure, copy this code where you want the button to be displayed:

    <button id="gotoslide3">Go to Slide 3</button>
    <script type="text/javascript">
    	(function($) {
    	$(document).ready(function() {
    		$('#gotoslide3').click(function() {
    			// Go to slide 3 (the slide 3 has index = 2 because we start counting from 0)
    			$('.crellyslider-slider-test').data('crellySlider').changeSlide(2);
    			// When the slide-out animation finishes, pause
    			setTimeout(function() {
    				$('.crellyslider-slider-test').data('crellySlider').pause();
    			}, 1000);
    		});
    	});
    	})(jQuery);
    </script>
    Thread Starter martineva

    (@martineva)

    yay thank you so much ! Gotta try that ASAP 🙂

    Thread Starter martineva

    (@martineva)

    and … it … works so fine ! thxs !

    Plugin Author Fabio Rinaldi

    (@fabiorino)

    You’re welcome!

    I’ve tried using this code but it gets jQuery errors & won’t work.

    I have a jQuery widget running on the same page.

    Is there a way to avoid these errors while still using other jQuery in the page?

    Thanks,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘link to a slide’ is closed to new replies.