
31/05/2004, 16:34
|
 | | | Fecha de Ingreso: abril-2004 Ubicación: Zaragoza
Mensajes: 305
Antigüedad: 20 años, 10 meses Puntos: 0 | |
Pues si te digo la verdad...no me ha dado ningún problema. Le meto en el <body> algo como esto para, por ejemplo, calcular la hora, lo guardo en webmatrix y luego lo pruebo desde javascript, y me funciona sin problema.
<script language="JavaScript">
days = new Array(7)
days[1] = "Domingo";
days[2] = "Lunes";
days[3] = "Martes";
days[4] = "Miercoles";
days[5] = "Jueves";
days[6] = "Viernes";
days[7] = "Sabado";
months = new Array(12)
months[1] = "Enero";
months[2] = "Febrero";
months[3] = "Marzo";
months[4] = "Abril";
months[5] = "Mayo";
months[6] = "Junio";
months[7] = "Julio";
months[8] = "Agosto";
months[9] = "Septiembre";
months[10] = "Octubre";
months[11] = "Noviembre";
months[12] = "Diciembre";
today = new Date(); day = days[today.getDay() + 1]
month = months[today.getMonth() + 1]
date = today.getDate()
year=today.getYear();
if (year < 2000)
year = year + 1900;
document.write ("<font size=-1 face='Tahoma, Helvetica, sans-serif' color=gold align='right'> "+ day + ", " + date + " de " + month + " de " + year "</font>")
</script>
De todas formas te lo quiero confirmar porque es de hace días y puede que realmente me diese algún fallo de primeras
Un saludo
__________________ Pide lo que quieras...y luego paga por ello |