<input id="B1"Type="Button"Value="Agree (Ten)"Disabled="Disabled"/> <script type="Text/javascript">vart =Ten; varAA = Window.setinterval ('A ()', +); function A () {varb = document.getElementById ('B1'); T--; if(T = =0) {window.clearinterval (AA); B.value='Agree'; B.removeattribute ('Disabled'); return; } b.value='Consent ('+ T +')'; }; </script>
Countdown (Agreed)
<div> <div id="D"></div> <asp:button id="B1"runat="Server"text="dot I discoloration"/> <asp:button id="B2"runat="Server"text="Dot I move"/> <script type="Text/javascript">varList =NewArray (); list[0] ='Green'; list[1] ='Blue'; list[2] ='Yellow'; list[3] ='Black'; list[4] ='Navy'; list[5] ='#e0e0e0'; varnum =0; document.getElementById ('B1'). onclick =function () {document.getElementById ('D'). Style.backgroundcolor =List[num]; Num++; if(num = =6) {num=0; } }; varTimer1 =NULL; document.getElementById ('B2'). onclick =function () {//document.getElementById (' d '). Style.left = document.getElementById (' d '). Style.offsetleft + + ' px ';Timer1 = Window.setinterval ('aaa ()', -); }; function aaa () {varD = document.getElementById ('D'); D.style.left= D.offsetleft +5+'px'; if(D.offsetleft >= $) {window.clearinterval (timer1); return; } }; </script> </div>
Click Move Color
Password: <asp:textbox id="TextBox1"runat="Server"></asp:textbox><br/> <br/>Confirm Password:<asp:textbox id="TextBox2"runat="Server"></asp:TextBox> <script type="Text/javascript">document.getElementById ('TextBox1'). Cnkeyup =function () {varT2 = document.getElementById ('TextBox2'); if(T.value = =t2.value) {alert ('correct'); } Else{alert ('Error'); } }; document.getElementById ('TextBox2'). Cnkeyup =function () {varT1 = document.getElementById ('TextBox1'); if(T1.value = =t2.value) {alert ('correct'); } Else{alert ('Error'); } }; </script>
When registering, JS verifies that the password is correct
Countdown, click Move Color and registration, JS Verify the password is correct