

1 zhttty 2013-04-11 16:07:37 +08:00 随便写的第一条: <html> <head> <meta http-equiv="Content-Type" cOntent="text/html; charset="> <title>progressBar</title> <script type="text/Javascript"> function changePB() { document.getElementById('imgwidth').width=document.getElementById('timelimit').value; } </script> </head> <body> <div class="top"> <form name="pi"> <label>Item A</label> <input id="timelimit" type="text" name="timelimit" value="100" style="width: 30px" Onchange="changePB()" /> <img id="imgwidth" alt="progressImg" src="progressImg.png" height=13 /> </form> </div> </body> </html> |
2 zhttty 2013-04-11 16:10:16 +08:00 引用的图片是173*13的长条; 你那个倒计时很简单的,只要将变量改成倒计时的变量就好了。 |