HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
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.

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $progress = new HTML_Progress();
  5. $progress->setAnimSpeed(250);
  6. $progress->setIncrement(10);
  7. ?>
  8. <html>
  9. <head>
  10. <style type="text/css">
  11. <!--
  12. body {
  13. background-color: #CCCC99;
  14. color: #996;
  15. font-family: Verdana, Arial;
  16. }
  17.  
  18. <?php echo $progress->getStyle(); ?>
  19. // -->
  20. </style>
  21. <script type="text/javascript">
  22. <!--
  23. <?php echo $progress->getScript(); ?>
  24. //-->
  25. </script>
  26. </head>
  27. <body>
  28.  
  29. <?php
  30. echo $progress->toHtml();
  31. $progress->run();
  32. $progress->hide();
  33. ?>
  34.  
  35. <h1>Your job is finished ! </h1>
  36. <p>The progress meter is now hidden.</p>
  37.  
  38. </body>
  39. </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