treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Probably a simple question - jquery cycle plugin

  • Im feeling rather stupid asking this because it's probably simple, but I can't get it to work!

    Here is what i am working on: http://trapeze.ca/botox/

    It is using the jquery cycle plugin to just fade between 3 images. My problem is that I can't make it stop looping! I have tried messing around with nowrap but it doesn't seem to affect it.

    Here is the code:
    		
    <script type=\"text/javascript\">
    $(function() {
    $('#Slideshow').cycle({
    speed: 1000,
    nowrap: 1
    });
    });
    </script>


    Thanks in advance :P
  • Check out the autostop option http://malsup.com/jquery/cycle/options.html
  • hmmm I tried that but it just kept looping away :P I tried the autostopcount option as well.
  • bahaha... I knew it was something silly I was missing... I was using jquery.cycle.lite.min.js rather than core with all transitions... changing it fixed it. :P

    lalala... :roll:
  • Saved me :)