Very nice and simple, Brice! I like.
One minor thing: You could probably chain these two lines ...
$(this).removeClass(classes);
$(this).addClass(params.stripeClasses[i % stripes]);
so that you're not duplicating the effort of creating a jQuery
object ...
$(this).removeClass(classes)
.addClass(params.stripeClasses[i % stripes]);
Great work!
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 27, 2008, at 10:06 AM, Brice Burgess wrote:
Apologies for the localhost link!
Here goes;
http://dev.iceburg.net/jquery/jqStripe/