谁研究过Progress_bar呀?那个英文的文档真是不明白!!谢谢给个说明什么的都行(中文)

解决方案 »

  1.   

    ProgressBar 控件监视操作完成的进度。 ProgressBar 控件有一个行程和一个当前位置。行程代表该操作的整个持续时间。当前位置则代表应用程序在完成该操作过程时的进度。Max 和 Min 属性设置了行程的界限。Value 属性则指明了在行程范围内的当前位置。Height 属性和 Width 属性决定所填充控件的方块的数量和大小。
      

  2.   

    怎么你解释和我的代码不一样?我的代码是这样子的<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
    <html>
    <head>
    <title>Progress Bar Example</title>
    </head>
    <body>
    <?php
    set_time_limit(0);
    include("class.progress_bar.php");$pbar = new progress_bar('pbar',1,10,FALSE); //Creates a 200 pixle width progress bar starting at 1 percent with the name pbar auto create = false$num_tasks = 20000; // the number of tasks to be completed.
    $pbar->create();
    for($cur_task = 0; $cur_task <= $num_tasks; $cur_task++)
    {
        echo("<p>Task $cur_task complete.</p>"); // Execute the current task.
    $pbar->set_percent_adv($cur_task,$num_tasks); // tells the progress bar that $cur_task of the 500 tasks is completed.
    }
    ?>
    </body>
    </html>