Cycle plugin: Hide Prev/Next

Cycle plugin: Hide Prev/Next

Hi there,

I have cycle working on a CMS setup. In some instances, the slider content area only has one image and am wondering if there is a way to hide the prev/next controls if this occurs?

My code is below:

  1. $(document).ready(function() {
  2.     $('.scrollable').cycle({
  3. fx: 'scrollHorz',
  4. timeout: 0,
  5. next:   '#next2', 
  6.      prev:   '#prev2' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
  7. });
  8. });
Any help would be great,

Thanks