Tip: You can modify some of the code before running
<ptml> <pead> <title> Controlled background Change button </title> <style type= "Text/css" > <!--body { Font-family: "The song Body"; font-size:9pt; margin-top:0px; margin-left:4px; margin-right:0px} A {color:black; font-size:13px; font-weight:400; Text-decoration:none} a:hover {color:red; font-size:13px; font-weight:400; Text-decoration:underline} a:active {font:9pt "song body"; Cursor:hand color: #FF0033}--></style> <meta H ttp-equiv= "Content-type" content= "text/html; charset=gb2312 "> </pead> <body> <br> <br> <center><font color=red face=" Official script "size=6 > button driver background change </font></center> <br> <center> <table border=1 bordercolor= #000000 Borderlight=green cellpadding= "0" cellspacing= "0" > <tr><td align=center><font size=5, color=red face = "Arial, Helvetica, Sans-serif" ><strong> the script display area </strong></font></td></tr> in the box below <TR><TD Align=center Height=80> ≪script language= "JavaScript" > var COLOR = 999999 var woot = 0 Function Stoploop () {document.bgcolor = ' #336699 '; Cleartimeout (LOOPID); function Loopbackground () {if (COLOR > 0) {document.bgcolor = ' # ' + color Color-= 111111 Loopid = Settimeo UT ("Loopbackground ()", 1)} else {document.bgcolor = ' #336699 ' woot = + color = 999999 Color-= Woot loopid = SetTimeout ("Loopbackground ()", 1)}} </script> <input type= "button" value= "Start background change" onclick= "Loopbackground () "><br> <input type=" button "value=" End background change "onclick=" Stoploop () "> </td></tr></table ></center> <br> <br> <center> <script language= "JavaScript" > <!--hide function GoH IST (a) {history.go (a);}//--> </script> </center> <br> <center> <br> <br> ; </body> </ptml>
Tip: You can modify some of the code before running