El Guru Programador
Usuario DESCONOCIDO | Registrate Gratis | Usuarios Registrados
Foro de Macromedia Flash
Foros del Guru > Macromedia Flash
Usuario COMO INCLUIR FECHA Y HORA
Desconocido
Enviado - 17/4/2002
 
ESTIMADOS AMIGOS , COMO PUEDO INLCUIR FECHA Y HORA EN MI PAGINA QUE ESTOY CREANDO EN DREAMWEAVER??
SALUDOS
[email protected]
 
Rouman
5 Mensaje(s)
Enviado - 28/5/2002
 
eeeh......no es un foro de Flash?
Bueno, igual si esto te sirve......es en javascipt.
Pones esto en el tag de body donde lo queres ubicar, pero solo es la fecha.

<BODY>

<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var months=new Array(13);
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";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000) // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
// End -->
</SCRIPT>
 
 

 

Contactos myStudio Network