Code: Alles auswählen
<span id="countdown"></span><script language="javascript">var endZeit = Date.parse(new Date)+(190*1000); function countDown(){var jetztZeit=Date.parse(new Date()); a=parseInt((endZeit-jetztZeit)/1000); min=parseInt(a/60); sec=a%60; min=min<10?("0"+min):min; sec=sec<10?("0"+sec):sec; document.getElementById("countdown").innerHTML=min+":"+sec; if(a>0)setTimeout(countDown, 100);} countDown();</script>
Code: Alles auswählen
<script language="javascript">var CountDownID=parseInt(Math.random()*1000); document.write('<span id="countdown'+CountDownID+'"></span>'); var endZeit = Date.parse(new Date)+(190*1000); function countDown(){var jetztZeit=Date.parse(new Date()); a=parseInt((endZeit-jetztZeit)/1000); min=parseInt(a/60); sec=a%60; min=min<10?("0"+min):min; sec=sec<10?("0"+sec):sec; document.getElementById("countdown"+CountDownID).innerHTML=min+":"+sec; if(a>0)setTimeout(countDown, 100);} countDown();</script>
Code: Alles auswählen
<script language="javascript">function countDown(){var jetztZeit=Date.parse(new Date()); a=parseInt((endZeit-jetztZeit)/1000); min=parseInt(a/60); sec=a%60; min=min<10?("0"+min):min; sec=sec<10?("0"+sec):sec; document.getElementById("countdown"+CountDownID).innerHTML=min+":"+sec; if(a>0)setTimeout(countDown, 100);} </script>
Code: Alles auswählen
<script language="javascript">var CountDownID=parseInt(Math.random()*1000); document.write('<span id="countdown'+CountDownID+'"></span>'); var endZeit = Date.parse(new Date)+(190*1000);countDown();</script>
Code: Alles auswählen
<script language="javascript">var CountDownID=parseInt(Math.random()*1000); document.write('<span id="countdown'+CountDownID+'"></span>'); var endZeit = Date.parse(new Date)+(parseInt(strip_tags('%user%'))*1000);countDown();</script>
Funkt, Dankeich kann allerdings mangels zeit gerade nicht testen.
Code: Alles auswählen
<script language="javascript">var CountDownID=parseInt(Math.random()*1000); document.write('<span id="countdown'+CountDownID+'" style='position:fixed;right:5px;bottom:5px;'></span>'); var endZeit = Date.parse(new Date)+(parseInt(strip_tags('%user%'))*1000);countDown();</script>
Code: Alles auswählen
<div style="position:fixed; bottom:10px; right:10px; background-color:#FFFFE0"><script language="javascript">var CountDownID=parseInt(Math.random()*1000); document.write('<span id="countdown'+CountDownID+'"></span>'); var endZeit = Date.parse(new Date)+(parseInt(strip_tags('%user%'))*1000);countDown();</script></div>
Mitglieder in diesem Forum: Ahrefs [Bot] und 3 Gäste