te la faccio semplice va...

hai la tua pagina che contiene il tag img che contiene la foto da far vedere

codice:
  [img]immaginedidefault.jpg[/img]
un bottone avanti ed uno indietro

codice:
  <input type="button" value="succ" onclick="next()" />
  <input type="button" value="prev" onclick="prev()" />
nell'head ci metti questo codice js

codice:
  var album = new Array();
  album[0] = "foto1.jpg"
  album[1] = "foto2.jpg"
  ...
  album[n] = "foton.jpg";

  var ln = album.length - 1;
  var current = 0;

  function prev() {
    current = (current == 0)? ln : current--;
    document.getElementById('foto').src = album[current];
  }

  function next() {
    current = (current == ln)? 0 : current++;
    document.getElementById('foto').src = album[current];
  }
Non ho modo di provarlo ma dovrebbe funzionare... le foto le metti sulla stessa cartella