Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Countdown
#6
PHP Code:
<?php
$rest
=60;
?>
<body>
<font id="countdowninput"><?php echo($rest);?></font>
</body>
<script type="text/javascript">
  // Ziel-Datum in MEZ
      var rest=<?php echo($rest);?>;    
      var font=document.getElementById("countdowninput");
      function countdown() {
          rest--;
          font.childNodes[0].nodeValue=rest;
          if(rest<=0)
          {
               font.childNodes[0].nodeValue="CUSTOM_TEXT";
               //Wenn man nen reload will... / Seite aufrufen
               // (auskommentiert)
               // document.location='URL'; 
               // document.reload //Der Reload
          }else{setTimeout('countdown()',999);}
        }
        countdown();
       
</script> 
Mal ganz kurz gescripted...
dann musste das hald nur noch umwandeln, kriegste das hin?^^
LG
steffen
Reply


Messages In This Thread
Countdown - by maikmille - 27.06.2011, 15:34
RE: Countdown - by Steffen - 27.06.2011, 15:50
RE: Countdown - by maikmille - 27.06.2011, 15:52
RE: Countdown - by Steffen - 27.06.2011, 15:54
RE: Countdown - by maikmille - 27.06.2011, 15:55
RE: Countdown - by Steffen - 27.06.2011, 16:06
RE: Countdown - by Molt - 27.06.2011, 16:09
RE: Countdown - by maikmille - 27.06.2011, 16:10
RE: Countdown - by Steffen - 27.06.2011, 16:10
RE: Countdown - by maikmille - 02.09.2011, 11:56
RE: Countdown - by Steffen - 02.09.2011, 13:03
RE: Countdown - by maikmille - 02.09.2011, 13:19
RE: Countdown - by Steffen - 02.09.2011, 13:27
RE: Countdown - by maikmille - 02.09.2011, 18:07



Users browsing this thread: 1 Guest(s)