prova così:
da richiamare così:codice:<script language="JavaScript> var n=0; var maxfoto=10; function view(action) { if (action=="+") { if (n<maxfoto) n++; } else if (action=="-") { if (n>1) n--; } document.getElementById('gallery').src="foto"+n+".htm"; } </script>
mentre, nel tuo iframe, metti:codice:<input type="button" onClick="view('+');" value="Avanti"> <input type="button" onClick="view('-');" value="Indietro">
fammi sapere.codice:<iframe id="gallery" src="foto1.htm">