I made a gallery (using ZenPhoto) and I have all images from one album load in one page. Each image has a named anchor:
<a href="image4_full.jpg" title="image4" name="image4">
<img src="image4.jpg" alt="image4" />
</a>
---edit--- Note: the anchors are not named in order, the names can be anything, e.g. "carrots", "poodles", "anthrax", "you_always_complicate_things".
I would like to let users jump to the next/previous named anchor using the left/right arrow keys. I will use jQuery if I have to, but I would prefer a shorter solution if that is easily possible. Please help :)