You can just just check the array length against the current loop counter.

If the two are the same, then just reset it to zero.

The should work.


agent2026 wrote:
> 
> I would really like to have thickbox loop though all the images with the
> next/prev buttons, so hitting next from the last image will bring up the
> first image for example, and the buttons are never disabled.  This way you
> can never get stuck at the beginning or end.
> 
> I'm surprised I haven't found any other posts about this.  Has anyone
> tried to implement this modification?
> 
> Adam
> 

-- 
View this message in context: 
http://www.nabble.com/Make-Thickbox-loop--tf2643760.html#a7381501
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to