Ver Mensaje Individual
  #11 (permalink)  
Antiguo 28/05/2009, 12:33
Avatar de futaman
futaman
 
Fecha de Ingreso: mayo-2009
Ubicación: FUTALANDIA
Mensajes: 16
Antigüedad: 15 años
Puntos: 0
Respuesta: Problema JAVASCRIPT

Código Solucion 13 - HTML:
Ver original
  1. <html>
  2. <head>
  3. <title>Hora en la barra de estado</title>
  4. <script language="JavaScript" type="text/javascript" src="fecha.js"></script>
  5.  
  6. </head>
  7. <body onload="fverfecha()">
  8.  
  9. </body>
  10. </html>

Código Solucion 13 - JS:
Ver original
  1. mmes=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Setiembre","Octubre","Noviembre","Diciembre");
  2. mdiasem=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sábado");
  3. function fverfecha()
  4. {
  5.     vfecha=new Date();//obtiene fecha actual
  6.     vanyo=vfecha.getFullYear();
  7.     vmes=mmes[vfecha.getMonth()];
  8.     vdia=vfecha.getDate();
  9.     vdiasem=mdiasem[vfecha.getDay()];
  10.     window.status=vdiasem + ", " + vdia +" de " + vmes +" de " + vanyo;
  11.     window.setTimeout("fverfecha()",1000);
  12. }