![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/02/2002, 12:10
|
| | Fecha de Ingreso: julio-2001 Ubicación: Internet
Mensajes: 1.690
Antigüedad: 23 años, 6 meses Puntos: 1 | |
Re: Cargar una pagina diferente cada dia Hola!,
Si, Con Javascript Se Puede Hacer, Pudes Crear Una Pagina "Intermediadora" A La Cual Envie El Enlace Y Esta Decida Hacia Donde Enviar Al Usuario.
Codigo Javascript Para La Pagina "Intermediadora":
<SCRIPT LANGUAGE=javascript>
fecha = new Date;
dia=fecha.getDay();
//Lunes Es 0 Domingo Es 6!
if(dia == 0)
{
location.href = "paginaLunes.htm";
}
else if(dia == 1)
{
location.href = "paginaMartes.htm";
}
else if(dia == 2)
{
location.href = "paginaMiercoles.htm";
}
else if(dia == 3)
{
location.href = "paginaJueves.htm";
}
else if(dia == 4)
{
location.href = "paginaViernes.htm";
}
else if(dia == 5)
{
location.href = "paginaSabado.htm";
}
else if(dia == 6)
{
location.href = "paginaDomingo.htm";
}
</SCRIPT>
<FONT COLOR=gray SIZE=2><I>"Los Temas Mas Sencillos Son Aquellos De Los Que No Se Sabe Nada"</I></FONT> |