当前位置:网站首页>JS SMS countdown implementation (simple code)
JS SMS countdown implementation (simple code)
2022-06-25 12:41:00 【Fall in love with*】
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
#btn {
background-color: skyblue;
position: relative;
left: 800px;
top: 30px;
border: 1px solid skyblue;
border-radius: 10px;
width: 300px;
height: 40px;
font-size: 20px;
}
</style>
</head>
<body>
<button type="button" id="btn" onclick="fun()"> Click my countdown </button>
<script type="text/javascript">
var a ;
var i = 10;
function fun(){
a= setInterval(function(){
if(i>0){
btn.disabled = true;
btn.innerText = (" count down "+(i < 10 ? "0" + i : i)+"s");
i--;
}else{
clearInterval(a);
btn.disabled = false;
btn.innerText = " Refresh page retime ";
}
},1000);
}
</script>
</body>
</html>
边栏推荐
- Common software numerical filtering methods (I) have been applied
- Install MySQL client
- Navicat premium view password scheme
- Singleton mode in PHP to reduce memory consumption
- Digital currency exchange -- digital currency exchange system development source code sharing
- Tidb common commands
- Ubuntu uninstalling PHP
- flutter 收到推送后自动消失问题
- Zhangxiaobai's road of penetration (VI) -- the idea and process of SQL injection and the concat series functions and information of SQL_ Schema database explanation
- Embedded software development written examination and interview notes (latest update: February 17, 2022)
猜你喜欢

MySQL common interview questions

Flutter common commands and problems

Full nanny tutorial of Market Research Competition (experience sharing)

(4) Pyqt5 tutorial -- > Custom signal and slot (super winding...)

Zhangxiaobai's road of penetration (IV) -- detailed explanation of XSS cross site script vulnerabilities

Penetration tool environment - installing sqli labs in centos7 environment
![Select randomly by weight [prefix and + dichotomy + random target]](/img/84/7f930f55f8006a4bf6e23ef05676ac.png)
Select randomly by weight [prefix and + dichotomy + random target]

GPS receiver design (1)

Go novice exploration road 2

ECSHOP video list_ ECSHOP uploading video, video classification, video list playing video function
随机推荐
Execution order of MySQL query statements join, on and where
最大数[抽象排序之抽象规则]
Select randomly by weight [prefix and + dichotomy + random target]
JQ dynamic setting radio does not take effect when selected
Kotlin Foundation
Thinkphp3 use phpword to modify the template and download it
Windows下MySQL的安装和删除
Zhangxiaobai's road to penetration (7) -sql injection detailed operation steps -union joint query injection
Huikan source code -- Huikan app system secondary development source code sharing
GPS NMEA protocol, 0183 positioning data format dual mode positioning: gnxxx gps+bd full version
Huile optimization system -- sharing of secondary development source code of huile optimization app system
Zhangxiaobai's road of penetration (VI) -- the idea and process of SQL injection and the concat series functions and information of SQL_ Schema database explanation
Circular exercises of JS
Penetration tool environment - installing sqli labs in centos7 environment
浏览器的5种观察器
Zhangxiaobai's way of penetration (V) -- detailed explanation of upload vulnerability and parsing vulnerability
(6) Pyqt5--- > window jump (registration login function)
ThinkPHP upload image compression size
三入职场!你可以从我身上学到这些(附毕业Vlog)
(2) Pyqt5 tutorial -- > using qtdesigner to separate interface code