1 <!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 <HTMLxmlns= "http://www.w3.org/1999/xhtml">3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />5 <title>Untitled Document</title>6 <style>7 . BB8 {9 width:100px;Height:40px;Background-color:#0F3;Border:5px Double Blue;}Ten One </style> A </Head> - <Body> - <inputtype= "button"value= "Agreed (Ten)"ID= "BB"Disabled= "Disabled" /> the </Body> - </HTML> - <Script> - varN=Ten; + varBB=document.getElementById ("BB"); - functionBian () + { A N--; at if(n==0) - { - Bb.removeattribute ("Disabled"); - Bb.value="Agree"; - } - Else in { - Bb.value="Consent ("+N+")"; to Window.settimeout ("Bian ()", +); + } - } the Window.settimeout ("Bian ()", +); * $ </Script>
Run
After the teacher's lecture, click on the Countdown