|
|
ilch Text Manager
| Menü: zurück zum Hauptmenü / Codeschnipsel eintragen / zurück
|
| Zeigt die Uhrzeit an |
| Code | 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34:
|
<body onload="DigitalTime()"">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" height="30"><span id="liveclock"
style="position:absolute;left:10px;top:10px;"><script language="JavaScript"><!--
function DigitalTime()
{
if(!document.layers && !document.all)
return
var DigitalClock = new Date();
var hours = DigitalClock.getHours();
var minutes = DigitalClock.getMinutes();
var seconds = DigitalClock.getSeconds();
if (minutes <= 9)
minutes = "0" + minutes;
if (seconds <= 9)
seconds = "0" + seconds;
//change font size here to your desire
digclock = "<font size='5' face='Arial' color='black'><b>" +
"<font size='1'>Aktuelle Zeit:</font></br>" +
hours + ":" + minutes + ":" + seconds + "</a></b></font>";
if (document.layers)
{
document.layers.liveclock.document.write(digclock);
document.layers.liveclock.document.close();
}
else if (document.all)
liveclock.innerHTML = digclock;
setTimeout("DigitalTime()",1000)
}
// --></script></span></td>
</tr>
</table>
</div>
|
|
Geschrieben von Freshmaker_01
zurück
|
|
|
| |