السلام عليكم
كود ساعة بالساعات والدقائق والثواني
<script language="JavaScript">
/* Visit our site at http://code-site.blogspot.com/ for more code
* This notice must stay intact for use */
<!-- begin script
var ddt1, delay;
function debuteTemps1() {
var hhmmss = " ", mymin, sec;
delay = 1000;
adate = new Date();
hhmmss += adate.getHours();
mymin = adate.getMinutes();
if (mymin < 10) hhmmss += ":0" + mymin;
else hhmmss += ":" + mymin;
sec = adate.getSeconds();
if (sec < 10) hhmmss += ":0" + sec;
else hhmmss += ":" + sec;
hhmmss = " " + hhmmss;
document.Temps11.heure.value = hhmmss;
ddt1 = setTimeout("debuteTemps1(delay)",delay);
}
// end script -->
</script>
<BODY onLoad="debuteTemps1()" onUnload="clearTimeout(ddt1)">
<form name="Temps11">
<input type="text" name="heure" size="8"><br>
</form>
وشكرا
كود ساعة بالساعات والدقائق والثواني
<script language="JavaScript">
/* Visit our site at http://code-site.blogspot.com/ for more code
* This notice must stay intact for use */
<!-- begin script
var ddt1, delay;
function debuteTemps1() {
var hhmmss = " ", mymin, sec;
delay = 1000;
adate = new Date();
hhmmss += adate.getHours();
mymin = adate.getMinutes();
if (mymin < 10) hhmmss += ":0" + mymin;
else hhmmss += ":" + mymin;
sec = adate.getSeconds();
if (sec < 10) hhmmss += ":0" + sec;
else hhmmss += ":" + sec;
hhmmss = " " + hhmmss;
document.Temps11.heure.value = hhmmss;
ddt1 = setTimeout("debuteTemps1(delay)",delay);
}
// end script -->
</script>
<BODY onLoad="debuteTemps1()" onUnload="clearTimeout(ddt1)">
<form name="Temps11">
<input type="text" name="heure" size="8"><br>
</form>
وشكرا