Geht nicht, ist ein WinterBoard Theme & leider hat das Forum teile meines Codes verschluckt
<html>
<head><title>newclock</title></head>
<style>
SPAN#clock
{font-family: Helvetica;color: #ffffff;font-size: 30px;text-shadow: #000000 1px 2px 1px;
}
SPAN#ampm
{font-family: Helvetica;color: #ffffff;font-size: 15px;text-shadow: #000000 1px 2px 1px;
}
SPAN#calendar
{font-family: Helvetica;text-align: center;color: #ffffff;text-shadow: #000000 1px 2px 1px;
}</style>
<script type="text/javascript">
function init ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("clock").appendChild ( timeDisplay );
}
function updateClock ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
// Pad the minutes and seconds with leading zeros, if required
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes;
// Update the time display
document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}
function init2 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("ampm").appendChild ( timeDisplay );
}
function amPm ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
// Compose the string for display
var currentTimeString = timeOfDay;
// Update the time display
document.getElementById("ampm").firstChild.nodeValue = currentTimeString;
}
function init3 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("calendar").appendChild ( timeDisplay );
}
function calendarDate ( )
{
var thisweekdaynamearray = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag")
var thismonthnamearray = new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember") //predefine month namesvar thisdatetimestamp = new Date()var thisweekday = thisdatetimestamp.getDay()
var thisdate = thisdatetimestamp.getDate()
var thismonth = thisdatetimestamp.getMonth()document.getElementById("calendar").firstChild.nodeValue = thisweekdaynamearray[thisweekday] + ", " + thismonthnamearray[thismonth] + " " + thisdate //concat long date string
}
</script>
</head>
<body bgcolor="black" background="Wallpaper.png">
<table style="position: absolute; top: 0px; left: 0px; width: 320px; height: 130px;" cellspacing="0" cellpadding="0" align="center">
<tr align="center" valign="top" border="0" cellpadding="0">
</tr>
</table>
<table style="position: absolute; top: 32px; left: 0px; width: 320px; height: 461px;" cellspacing="0" cellpadding="0" align="center">
<tr align="center" valign="top" border="0" cellpadding="0">
</tr>
<tr align="center">
</tr>
</table>
</body>
</html>
So müsst besser sein :)