Wednesday, April 18, 2012

for loop in jquery?

I have a photo gallery, images are named from 0 to 170 and I am inserting them like so:



> <div id="galleria">
> <a href="images/0.jpg">
> <img src="images/0.jpg">
> </a>
> <a href="images/1.JPG">
> <img src="images/1.JPG">
> </a>
> <a href="images/2.JPG">
> <img src="images/2.JPG">
> </a>
> <a href="images/3.JPG">
> <img src="images/3.JPG">
> </a>


can i use a for loop to go from 0-170 instead of doing 1 at a time





No comments:

Post a Comment