Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/04/2008, 18:36
kali-mero
 
Fecha de Ingreso: abril-2008
Mensajes: 6
Antigüedad: 16 años
Puntos: 0
Re: Botón regreso directo a un determinada página del historial de un iframe.

Lo he conseguido poniendo este código en el body:

Cita:
<img src="http://IMAGEN1.jpg" width="350" height="233" name="photoslider">

<!--COMIENZO JAVASCIPT-->

<script language="JavaScript1.1">
var photos=new Array()
var which=0

/*Array de imágenes*/
photos[0]="http://IMAGEN1.jpg"
photos[1]="http://IMAGEN2.jpg"
photos[2]="http://IMAGEN3.jpg"
photos[3]="http://IMAGEN4.jpg"
photos[4]="http://IMAGEN5.jpg"
photos[5]="http://IMAGEN6.jpg"

function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}
else window.status='End of gallery'
}
</script>

<!--FIN JAVASCRIPT-->

<p>

<input type="button" value="<<Atras" name="B2" onClick="backward()"> <input type="button" value="Adelante>>" name="B1" onClick="forward()">
Espero que a alguien también le sirva.
Saludos Raul.