codigo para colocar fecha y hora
deseo contar con el codigo html para colocar fecha y hora en pagina web, por favor donde lo encuentro ?
grcias
grcias
Date and Time display
This script displays a textbox with the current time and date. The local time and date refers to the viewers machine, not the server. You can put it were ever you want in your web page.
Here is the script:
<SCRIPT LANGUAGE="JavaScript">
function TimeOutfunc() {
timeout = window.setTimeout("TimeOutfunc()", 1000);
var today = new Date();
document.forms[0].elements[0].value = today.toString();
}
</SCRIPT>
<BODY ONLOAD="timeout = setTimeout('TimeOutfunc();',1000);">
<CENTER>
<FORM>
<INPUT TYPE="text" NAME="disp" VALUE="" SIZE="25">
</FORM>
<P>
</CENTER>
</BODY>
<p>
-----------------------------------------------
No sé si esto te servirá, lo he encontrado en esta página:
http://www.geocities.com/SunsetStrip/Alley/5616/msjava.htm#toc
This script displays a textbox with the current time and date. The local time and date refers to the viewers machine, not the server. You can put it were ever you want in your web page.
Here is the script:
<SCRIPT LANGUAGE="JavaScript">
function TimeOutfunc() {
timeout = window.setTimeout("TimeOutfunc()", 1000);
var today = new Date();
document.forms[0].elements[0].value = today.toString();
}
</SCRIPT>
<BODY ONLOAD="timeout = setTimeout('TimeOutfunc();',1000);">
<CENTER>
<FORM>
<INPUT TYPE="text" NAME="disp" VALUE="" SIZE="25">
</FORM>
<P>
</CENTER>
</BODY>
<p>
-----------------------------------------------
No sé si esto te servirá, lo he encontrado en esta página:
http://www.geocities.com/SunsetStrip/Alley/5616/msjava.htm#toc
Aqui tienes otro por si las moscas
Lo puedes encontrar en esta pagina
http://www.hackersdelocos.com.ar
<script language="JavaScript">
// -- made by A1javascripts.com, please keep these credits when using this script
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 face=Verdana size=2>" + day + ", " + month + " " + date + ", " + year + "</font>")
// -- end hiding
</script>
</b>
Lo puedes encontrar en esta pagina
http://www.hackersdelocos.com.ar
<script language="JavaScript">
// -- made by A1javascripts.com, please keep these credits when using this script
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 face=Verdana size=2>" + day + ", " + month + " " + date + ", " + year + "</font>")
// -- end hiding
</script>
</b>