Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/05/2009, 02:01
Avatar de caricatos
caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años, 1 mes
Puntos: 1284
Respuesta: ¿Como puedo ir mostrando distintas paginas de forma automática y cíclica?

Hola periquen, bienvenido a los foros :

Puedes probar este código:

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/DTD/frameset.dtd">
<html>
<head>
<title>
	http://www.caricatos.net/probador
</title>
<script>
urls = ["../articulos/popup.php", "../articulos/probador.php", "../articulos/gradientes.php"];
i = 0;
function ir() {
 window.frames.visitar.location.href = urls[i ++ % urls.length];
}
window.onload = setInterval(ir, 10000);

</script>
</head>
<body>
<iframe name="visitar" src="../index.php" style="width: 90%; height: 200px"></iframe>
</body>
</html>
En este Probador de scripts

Saludos
__________________
Por favor:
No hagan preguntas de temas de foros en mensajes privados... no las respondo