I have a site with 6 images per page. There are a total of 2100 images. So that's 350 pages.

I would like find someway of doing a jump to or a "next/previous" link

Kind of like this

Previous |jump to| next

I assume that the jump to would be a javascript, I tried to write a script but am still new to JS and it's kind of buggy. Also is there any easier way to do this? I could do it in XHTML but it would mean coding each page which is doable but a lot of work. Or is there no easier way.

I imagine in PHP it would be easy but that's way out of my league.

Any suggestions