erg38- V.İ.P Üye
- Mesaj Sayısı : 179
Kayıt tarihi : 30/01/10
Yaş : 29
Nerden : geldi bu koqu pff xD
tarafından erg38 C.tesi Mart 13, 2010 6:04 am
- Kod:
<html>
<head>
<title>Test</title>
<script type="text/javascript">
var newCount;
function timer(position,count)
{
if (position == 'start') {
document.getElementById("timer").innerHTML=count
newCount = count - 1
setTimeout("timer('go',newCount)",1000)
}
if (position == 'go') {
document.getElementById("timer").innerHTML=count
newCount--;
setTimeout("timer('go',newCount)",1000)
}
}
</script>
</head>
<body onload="timer('start',10);">
<div id="timer" />
</body>
</html>