HTML_Progress::hide

HTML_Progress

Prev |  | Next
HTML_Progress::hide hides the progress meter at end of process ## Synopsis require_once 'HTML/Progress.php'; void HTML_Progress::hide() ## Description This method is used to hide the progress meter at end of process, when the progress meter reachs 100%. ## Note ( HTML_Progress >= 1.2.0RC3 )
| This function can not be called statically.
## See HTML_Progress::run, HTML_Progress::display, HTML_Progress::toHtml ## Example Example below (that requires HTML_Progress >= 1.2.0RC3) will produced a progress bar which becomes hidden at end of process.

    <?php
    require_once 'HTML/Progress.php';

    $progress = new HTML_Progress();
    $progress->setAnimSpeed(250);
    $progress->setIncrement(10);
    ?>
    <html>
    <head>
    <style type="text/css">
    <!--
    body {
        background-color: #CCCC99;
        color: #996;
        font-family: Verdana, Arial;
    }

    <?php echo $progress->getStyle(); ?>
    // -->
    </style>
    <script type="text/javascript">
    <!--
    <?php echo $progress->getScript(); ?>
    //-->
    </script>
    </head>
    <body>

    <?php
    echo $progress->toHtml();
    $progress->run();
    $progress->hide();
    ?>

    <h1>Your job is finished ! </h1>
    <p>The progress meter is now hidden.</p>

    </body>
    </html>
Prev | Up | Next
HTML_Progress::display | Reference Guide | HTML_Progress::toHtml
Documentation generated on Sun, 12 Sep 2004 20:23:00 +0200 by phpDocumentor 1.3.0RC3