Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/01/2008, 04:22
Consupermiso
 
Fecha de Ingreso: enero-2008
Mensajes: 2
Antigüedad: 17 años, 1 mes
Puntos: 0
De acuerdo Re: Random Redireccionar WEB dependiendo del dia del año

Bueno, al final no he tenido respuesta por este foro. Pero he conseguido encontrar lo que quería. Lo posteo aqui por si en el futuro alguien tiene que hacer algo parecido.


Ir a una página dependiendo del mes.


<!-- TWO STEPS TO INSTALL MONTH PAGE:

1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function monthPage() {
today = new Date();
m = new Array(
"January.html","February.html",
"March.html","April.html","May.html",
"June.html","July.html","August.html",
"September.html","October.html",
"November.html","December.html"
);
window.location = m[today.getMonth()];
}
// End -->
</script>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

<BODY OnLoad="monthPage()">

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.85 KB -->




Ir a una página dependiendo del día del mes




<!-- ONE STEP TO INSTALL DAY OF MONTH REDIRECTION:

1. Paste the coding into the HEAD of your HTML document -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var today = new Date();
var day = today.getDate();
window.location = day + ".html";
// End -->
</SCRIPT>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>





Dependiendo del día de la semana





<!-- ONE STEP TO INSTALL DAY OF WEEK REDIRECTION:

1. Paste the coding into the HEAD of your HTML document -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i];
}
var DOWArray = new
initArray("Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday");
var today = new Date();
var day = DOWArray[today.getDay()+1];
window.location = day + ".html";
// End -->
</SCRIPT>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.79 KB -->