Index: jcarousel.js =================================================================== --- jcarousel.js (revision 15) +++ jcarousel.js (working copy) @@ -11,6 +11,9 @@ * * Inspired by the "Carousel Component" by Bill Scott * http://billwscott.com/carousel/ + * + * 2006-12-01 - Kelvin Luck + * Added onScrollStart and onScrollEnd events */ jQuery.fn.extend({ @@ -176,6 +179,8 @@ itemLastOutHandler: null, itemVisibleInHandler: null, itemVisibleOutHandler: null, + onSrollStart: null, + onScrollEnd: null, noButtons: false, buttonNextHTML: '', buttonPrevHTML: '' @@ -324,7 +329,8 @@ priv.first = first; priv.last = last; - + + priv.handler('onSrollStart', 'onAfterAnimation', null, priv.first); priv.animate(); }, @@ -349,6 +355,7 @@ priv.inAnimation = false; priv.notify(priv.prevFirst, priv.prevLast, priv.first, priv.last, "onAfterAnimation"); priv.load(priv.last + 1, priv.last + priv.o.itemScroll); + priv.handler('onScrollEnd', 'onAfterAnimation', null, priv.first); }, handler: function(handler, evt, state, i1, i2, i3, i4) {