He estado probando con un código q encontré en el foro.
he comprobado que genera la ruta correctamente y las escoje al azar, y que refresca según el periodo indicado.
Pero al refrescar no cambia la ruta en la barra de direcciones de IE, cuando si le pido que me la refreje en la página, ve como varía.
¿Donde puede estar el error?
Código:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="refresh" content="10;URL="javascript:rotacion()">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<script language="javascript">
<!--
function rotacion()
{
n=0;
this[n++]="irapagina2.htm#1";
this[n++]="irapagina2.htm#2";
this[n++]="irapagina2.htm#4";
this[n++]="irapagina2.htm#3"
this.N=n;
}
var urls=new rotacion(2);
url= urls[ Math.floor(Math.random() * urls.N) ] ;
//-->
</script>
<table width="156%">
<tr>
<td width="41%"><a name="1"></a></td>
<td width="25%"><a name="2"></a></td>
<td width="26%"><a name="3"></a></td>
<td width="8%"><a name="4"></a></td>
</tr>
</table>
</body>
</html>