|
|
|
| Title : |
PHP functions to generate a Javascript-driven progress bar with images representing the success or failure of different stages |
| Categories : |
PHP, Java Script |
 Stig Bakken |
| Date : |
Jan 17th 1999 |
| Grade : |
2 of 5 (graded 1 times) |
| Viewed : |
7460 |
| File : |
No file for this code example. |
| Images : |
No Images for this code example. |
|
| Search : |
More code by Stig Bakken |
|
| Action : |
Grade This Code Example
|
|
| Tools : |
My Examples List |
|
|
|
|
|
|
<?php // -*- C++ -*-
/*
* $Id: pbar.phl,v 1.2 1998/04/14 09:22:04 ssb Exp $
*/
function make_progress_bar($cells) {
global $image_path;
echo( "<center><table border=0 cellpadding=0 cellspacing=2>\n");
echo( " <tr>\n");
for ($cell = 1; $cell <= $cells; $cell++) {
echo( " <td><img name=\"pbar$cell\" ".
"src=\"${image_path}pbar-blank.gif\" alt=\"\"></td>\n");
}
echo( " </tr>\n</table></center>\n");
flush();
}
function show_progress($num, $status) {
global $image_path;
if ($status) {
$icon = "pbar-done";
} else {
$icon = "pbar-failed";
}
javascript( "document.pbar$num.src = '${image_path}${icon}.gif';");
flush();
}
?>
|
|
| Zephyr: AJAX Based Framework for PHP5 Developers Categories : PHP, AJAX, Frameworks, Java Script, Web Applications | | | Array values from javascript to php Categories : PHP, Java Script, Arrays | | | Create HTML forms dynamicly using Javascript & PHP Categories : PHP, PHP Classes, Java Script | | | Linked comboboxes with php-mysql & javascript Categories : PHP, Java Script, Databases, MySQL | | | The toll booth Categories : PHP, Java Script, Filesystem | | | MD5 secured login Categories : PHP, Java Script, Authentication, Security | | | Pull Down Surfing - Surf on Change Categories : Java Script, MySQL, HTML and PHP, PHP, Databases | | | Remote Scripting: send form POST data to a script and insert the results into a page without refreshing the page. Categories : PHP, AJAX, HTML and PHP, Java Script | | | Builds JavaScript that updates the contents of one selector based on another. Categories : HTML, Java Script, PHP, Complete Programs, General | | | This is a script that list all image files on a given directory, and displays
the thumbnails nicely formated within an HTML table. It also make use of
JavScript to open pop up windows when the users want to see the full photo. Categories : Graphics, PHP, Complete Programs, Java Script | | | KuPro1.0 - This application is for Libraries, To see their books and to maintain users books. This version is in Turkish, future vers may have English Support.
Categories : PHP, Java Script, DHTML | | | PHP Interaction with Javascript windows Categories : Java Script, PHP | | | Easy alert box pop-up function Categories : PHP, Java Script, Beginner Guides | | | Classic guest book made with PHP and Flash Categories : PHP, Flash, Java Script | | | Upload any fixed type of files, control file type through javascript and encrypt filename using php so file not get overwrite Categories : PHP, Java Script, Functions, PHP References, Form Processing | |
|
|
|