require("ProgressClass.php"); ?>
ProgressClass v1.0 - Beispiel 2
Fortschrittsbalken mit Button, dynamischer Beschriftung und Farbe.
(funktioniert nur ab IE 5.x oder Netscape 6.x)
Aktion abgebrochen.
'; exit(); } function send($email) { global $progress; echo "Sende E-Mail an $email ... OKfor ($i=1;$i<=100;$i++) { usleep(100000); if ($i==10) send('paulmueller@domain.de'); if ($i==20) send('lisa@springfield.de'); if ($i==30) send('donald@entenhausen.de'); if ($i==40) send('marketing@firma.de'); if ($i==50) send('dr.peter@arzt.de'); if ($i==60) send('schueler@schule.de'); if ($i==70) send('lehrer@schule.de'); if ($i==80) send('niemand@world.de'); if ($i==90) send('xxx@yyy.de'); $progress->setPercent($i); $progress->setBarColor('#'.dechex(100-$i+156).dechex($i+80).'00'); } $progress->setLabel('Fertig!'); sleep(1); $progress->hide(); ?>
Die Anzeige diente nur zur Demonstration. Es wurden nicht wirklich E-Mails versandt.