![Smilie](https://www.php-resource.de/forum/core/images/smilies/smile.gif)
DANKE!
![Smilie](https://www.php-resource.de/forum/core/images/smilies/smile.gif)
Danke danke! stimmt... sollte man schon umdrehen ^^
document.theClock.theTime.value = "" + MinAusgabe ":" + SdtAusgabe;
document.theClock.theTime.value = StdAusgabe + ":" + MinAusgabe;
<script language="JavaScript">
<!--
var clockID = 0;
function UpdateClock() {
if(clockID) {
clearTimeout(clockID);
clockID = 0;
}
var tDate = new Date();
document.theClock.theTime.value = ""
+ tDate.getHours() + ":"
+ tDate.getMinutes() + ":"
+ tDate.getSeconds();
clockID = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
clockID = setTimeout("UpdateClock()", 500);
}
function KillClock() {
if(clockID) {
clearTimeout(clockID);
clockID = 0;
}
}
//-->
</script>
<script language="JavaScript">
<!--
var clockID = 0;
function UpdateClock() {
if(clockID) {
clearTimeout(clockID);
clockID = 0;
}
var tDate = new Date();
var Std = tDate.getHours();
var Min = tDate.getMinutes();
var MinAusgabe = ((Min < 10) ? "0" + Min : Min);
var StdAusgabe = ((Std < 10) ? "0" + Std : Std);
document.theClock.theTime.value = ""
+ MinAusgabe ":"
+ SdtAusgabe;
clockID = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
clockID = setTimeout("UpdateClock()", 500);
}
function KillClock() {
if(clockID) {
clearTimeout(clockID);
clockID = 0;
}
}
//-->
</script>
Einen Kommentar schreiben: