Struppi: Nächstes Problem

Beitrag lesen

<script type="text/javascript">
<!--
function xtime()
{
 today = new Date();
 day=today.getDate();
 month=today.getMonth()+1;
 year=today.getFullYear();
 hour=today.getHours();
 minutes=today.getMinutes();
 seconds=today.getSeconds();

if (day < 10)
  {day="0"+day;}
if (month < 10)
  {month="0"+month;}
if (minutes < 10)
  {minutes="0"+minutes;}
if (seconds < 10)
  {seconds="0"+seconds;}

aus Bequemlichkeit und Übersichtlichkeit

if (day < 10) day = "0" + day;
if (month < 10) month = "0" + month;
if (minutes < 10) minutes = "0" + minutes;
if (seconds < 10) seconds = "0" + seconds;

else if (document.all)
  {
  ticktack.innerHTML = timeString;

na, dann aber auch richtig, man weiss ja nie ob die Fehlerkorrektur nicht doch mal stolpert:

document.all['ticktack'].innerHTML = timeString;

Struppi.