On Mar 6, 7:19 am, Drake Aedus <[EMAIL PROTECTED]> wrote:
> I'm pretty new to jQuery, and I'm having a lot of fun with it. I tried
> a quick search and didn't find anything really helpful, so maybe this
> is a good question, or maybe I'm having a brain-fart...
>
> What I am trying to do, is loop through a list of child nodes, and
> only display one at a time. It is easy enough to go through the node
> list and change classes on a timeout, but I can't figure out how to
> skip from the last child, back to the first without using as much code
> as it would take without jQuery.
Presumably you have a counter and an array of things to cycle over, to
simply reset the counter to zero when it reaches the last member of
the array:
i = ++i % array.length;
--
Rob