Controllable Background Change button

Source: Internet
Author: User
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 &LT;TR&GT;&LT;TD Align=center Height=80> &Lt;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&gt ; </body> </ptml>
Tip: You can modify some of the code before running

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.