Hi, try that (untested):
Replace the line priv.scroll(priv.first - priv.o.itemScroll); with priv.scroll((priv.o.wrap && priv.first == 1) ? priv.size - priv.o.itemVisible + 1 : priv.first - priv.o.itemScroll); Jan agent2026 wrote: > > Using the built in wrap, setting viewable images to 1 and using no > animation the carousel is visually looping in the next direction back to > the beginning. This is good enough for me in that direction, but there > must be some way to modify the first image 'prev' link to scroll to the > last image. > > If I can set carousel.scroll([item]); in a callback function, then I > figure I should be able to set a 'disabled' prev button to call a similar > function like carousel.scroll([last]);. As the first line item is already > having it's prev state changed to disabled, I thought this could be a good > line to follow for changing the prev item value from null to last (I've > changed my css so disable is the same as enabled). > > Sounds good to me, but I can't figure out how to do it :). Hope someone > can help with this. > > Adam > -- View this message in context: http://www.nabble.com/Make-jCarousel-Loop--tf2668238.html#a7565628 Sent from the jCarousel mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/