Fotorama is unmaintained! Fork away

Hash

Attribute data-hash="true" lets the page change its URL upon switching images. To send a link to a specific photo to a friend :-)

Takes the frame number or the id:

<div class="fotorama"
     data-hash="true">
  <img src="1.jpg">
  <img src="2.jpg">
  <img src="3.jpg" id="three">
</div>

Hash example (new window):

Better be used with only one fotorama per page.