Example viewer from the Swivel Viewer open source project.

Here's a sample image viewer embedded in a div. Drag left and right to flip back and forth through the images. Scroll wheel zooms. When zoomed in, shift+drag pans within an image.