Incrustar la fecha automaticamente?

15/07/2003 - 01:54 por SG Web Design - Sergio Gattelet | Informe spam
Hola grupo

Alguien conoce como se puede incrustar la fecha automaticamente al crear un
nuevo correo en un lugar especifico del diseño que se emplee, utilizando
html.

Gracias de antemano!

Sergio
 

Leer las respuestas

#1 Palel
16/07/2003 - 20:18 | Informe spam
mediante un script, por ejemplo.
Introducir en el código del HTML lo siguiente:
_____________________________________________
<!-- Código html de hora-->
<SCRIPT>
function tick() {
var hours, minutes, seconds, ap;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
ap = "Medianoche";
} else if (intHours <12) {
hours = intHours+":";
ap = "A.M.";
} else if (intHours == 12) {
hours = "12:";
ap = "Mediodía";
}
else {
intHours = intHours - 12
hours = intHours + ":";
ap = "P.M.";
}
if (intMinutes <10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds <10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = hours+minutes+seconds+ap;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;
</SCRIPT>

<META content="MSHTML 5.00.2014.210" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY background="">
<DIV id=Clock
style="COLOR: #0000ff; FONT-FAMILY: Arial; FONT-SIZE: 30px; FONT-WEIGHT: bolder"
aling="left"></DIV>
<DIV>
<HR>
</DIV>
<!-- Fin del Código html -->
_____________________________________________

Saludos, Palel
MS MVP
http://www.infonegocio.com/luzylar/informatica.htm

®El Rincón del Navegante
http://www.luzylar.com
__________________________________
"SG Web Design - Sergio Gattelet" escribió en el mensaje news:
| Hola grupo
|
| Alguien conoce como se puede incrustar la fecha automaticamente al crear un
| nuevo correo en un lugar especifico del diseño que se emplee, utilizando
| html.
|
| Gracias de antemano!
|
| Sergio
|
|

Preguntas similares