#1 Foto del día
Hola! Necesito un script para colocar una foto que cambie todos los dias sin tener que yo actualizarla.
Tengo este script para la fecha
<script language="JavaScript">
<!--
var weekdays = new Array(6);
var months = new Array(11);
var today = new Date();
var month = today.getMonth();
var date = today.getDate();
var weekday = today.getDay();
var year = today.getYear();
if (year <= 150){
year = year + 1900;
}
today = null;
weekdays[0] = "Domingo";
weekdays[1] = "Lunes";
weekdays[2] = "Martes";
weekdays[3] = "Miércoles";
weekdays[4] = "Jueves";
weekdays[5] = "Viernes";
weekdays[6] = "Sábado";
months[0] = "Enero";
months[1] = "Febrero";
months[2] = "Marzo";
months[3] = "Abril";
months[4] = "Mayo";
months[5] = "Junio";
months[6] = "Julio";
months[7] = "Agosto";
months[8] = "Septiembre";
months[9] = "Octubre";
months[10] = "Noviembre";
months[11] = "Diciembre";
document.write(weekdays[weekday] + " " + date + " de " + months[month] + " de " + year);
// -->
</script>
y pondría en una carpeta 'images/fotodia' diferentes subcarpetas, una por mes, llamadas del 1 al 31...¿como puede autocargar la foto segun el dia????????
<BR>document.write('<img src="images/fotodia' + image + '"')
<BR>
</script>
Tengo este script para la fecha
<script language="JavaScript">
<!--
var weekdays = new Array(6);
var months = new Array(11);
var today = new Date();
var month = today.getMonth();
var date = today.getDate();
var weekday = today.getDay();
var year = today.getYear();
if (year <= 150){
year = year + 1900;
}
today = null;
weekdays[0] = "Domingo";
weekdays[1] = "Lunes";
weekdays[2] = "Martes";
weekdays[3] = "Miércoles";
weekdays[4] = "Jueves";
weekdays[5] = "Viernes";
weekdays[6] = "Sábado";
months[0] = "Enero";
months[1] = "Febrero";
months[2] = "Marzo";
months[3] = "Abril";
months[4] = "Mayo";
months[5] = "Junio";
months[6] = "Julio";
months[7] = "Agosto";
months[8] = "Septiembre";
months[9] = "Octubre";
months[10] = "Noviembre";
months[11] = "Diciembre";
document.write(weekdays[weekday] + " " + date + " de " + months[month] + " de " + year);
// -->
</script>
y pondría en una carpeta 'images/fotodia' diferentes subcarpetas, una por mes, llamadas del 1 al 31...¿como puede autocargar la foto segun el dia????????

<BR>document.write('<img src="images/fotodia' + image + '"')
<BR>
</script>
0