|
|
|
| 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 : |
13543 |
| 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();
}
?>
|
|
| 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 | | | PHP and javascript mouseover, mouseout, and mousedown events Categories : PHP, Java Script, Form Processing, Beginner Guides | | | Pull Down Surfing - Surf on Change Categories : Java Script, MySQL, HTML and PHP, PHP, Databases | | | How to check if JavaScript is enabled on a remote browser with PHP Categories : PHP, Java Script | | | filesystem Show Files Script Categories : PHP, Filesystem, Java Script | | | Validator 98 - a PHP-script to generate form-validation-code in JavaScript. Categories : Complete Programs, Java Script, PHP, HTML and PHP | | | PHP Calendar Categories : PHP, Calendar, Date Time, Java Script, CSS | | | Classic guest book made with PHP and Flash Categories : PHP, Flash, Java Script | | | Zephyr: AJAX Based Framework for PHP5 Developers Categories : PHP, AJAX, Frameworks, Java Script, Web Applications | | | Dynamic Loading of XML array data into ComboBox and Display XML data using PHP + DOM + Javascript. Categories : PHP, Java Script, DOM XML, XML, Arrays | | | A Complete table(ADD,EDIT,VIEW,DELETE) management System PHP,MYSQL, JAVASCRIPT Categories : PHP, MySQL, Java Script, Databases | | | Menu in sliding bar or tree style. Handles frames by using small amount of javascript. Handles external and internal pages. Allows custom code to replace a menu item. Categories : PHP Classes, PHP, Java Script, DHTML | | | A Simple sign up script with PHP and JavaScript validations. Categories : PHP, Java Script, MySQL, Databases | | | Protect your mailto: email addresses from bots Categories : PHP, Email, Java Script | | | Create HTML forms dynamicly using Javascript & PHP Categories : PHP, PHP Classes, Java Script | |
| |
| |
|