Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=83771
Postga havola
developer [323] [off]
Mailzero, # Mailzero (22.04.2020 / 10:38)
14-MASALA(+5 BALL):$vaqt='600'; //sekunda koʻrsatilgan 10 min
$sanash='100'; // gacha sanalsin
Shunday sahifa tuzinki 10 minut real vaqtda 1 dan 100 gacha sanasin.
Yordam:har 6-sekuntda 1, 12-sekun
3 daqiqa 45 soniyadan keyin yozdi:
namuna
4 daqiqa 54 soniyadan keyin yozdi:
Akbarali yozgan koddan asos qilib foydalanildi!
14-MASALA(+5 BALL):$vaqt='600'; //sekunda koʻrsatilgan 10 min
$sanash='100'; // gacha sanalsin
Shunday sahifa tuzinki 10 minut real vaqtda 1 dan 100 gacha sanasin.
Yordam:har 6-sekuntda 1, 12-sekun
<!DOCTYPE html> <html> <head> <title id="vaqt"></title> </head> <body> <META HTTP-EQUIV="Refresh" CONTENT="600"> <div id="v" style="color: red; font-size: 14px;" ></div> <div id="sanash" style="color: green; font-size: 14px;"></div> <script type="text/javascript"> var timeleft = 0; var sana=0; var downloadTimer = setInterval(function(){ if(timeleft > 600){ clearInterval(downloadTimer); document.getElementById("sanash").innerHTML = "sanash tugadi"; } else { document.getElementById("v").innerHTML = timeleft +" sekund o'tdi"; if (timeleft % 6 == 0) { document.getElementById("sanash").innerHTML = sana; sana+=1; } } timeleft += 1; }, 1000); downloadTimer(); </script> </body> </html>
3 daqiqa 45 soniyadan keyin yozdi:
namuna
4 daqiqa 54 soniyadan keyin yozdi:
Akbarali yozgan koddan asos qilib foydalanildi!