Php progress bar implementation code. Copy the code as follows: htmlheadbodytablecellspacing1cellpadding1trtdbgcolor000000tablecellspacing0cel
The code is as follows:
Flush ();
For ($ I = 0; $ I <= 100; $ I ++) // outputs 100 JavaScript code in a loop
{
$ Width = $ I * 4;
Echo "SCRIPT";
Echo "percent_img.width = $ width;"; // controls the image width.
Echo "percent_txt.innerHTML = '$ I %';"; // display the control percentage
Echo "SCRIPT";
For ($ j = 0; $ j <1000000; $ j ++)
{
// To demonstrate the progress bar effect, an empty loop is executed here.
}
Flush ();
}
?>
The http://www.bkjia.com/PHPjc/319918.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/319918.htmlTechArticle code is as follows: html head/head body table width = "400" border = "0" cellspacing = "1" cellpadding = "1" tr td bgcolor = "000000" table width = "400" border = "0" cellspacing = "0" cel...