dreamweaver_8
Neues Mitglied
Hat mir jemand einen countdown der sich jede Sekund ändert ohne, dass man aktuallisieren muss.
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<head>
<script language="JavaScript">
function countdown_start(startwert)
{
startwert++
countdown_count(startwert)
}
function countdown_count(wert)
{
wert--
document.getElementById('count').innerHTML = wert
if(wert > 0)
{
window.setTimeout('countdown_count('+wert+')',1000)
}
else
{
alert('countdown ist abgelaufen!')
}
}
</script>
</head>
<body onload="countdown_start(10)">
<div id="count"></div>
</body>