Made progress meter as lynx-friendly as I could.

This commit is contained in:
Jeff Teunissen 2000-03-08 17:45:31 +00:00
parent e5ba5c5d83
commit 270c1da97b

View file

@ -16,7 +16,7 @@
function progressKey() // Display key for progress bar
{
echo '<TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD align="center">' .
'<IMG src="/img/graph/ProgressBar.desc.png">' .
'<IMG src="/img/graph/ProgressBar.desc.png" ALT="0-33% Hackers, 34-67% Developers, 68-100% Users">' .
'</TD><TD>&nbsp;</TD><TD align="left" ></TD></TR>';
}
@ -27,23 +27,24 @@
$j = 100 - $newPct;
$result = '';
$result .= '<TR><TD align="right">' . $name . '</TD><TD>&nbsp;</TD><TD align="center">';
$result .= '<IMG src="/img/blank.gif" height="1" width="1" alt="' . $pct . '% Complete">';
for ( ; $i >= 20 ; $i -= 20 ) {
$result .= '<IMG src="/img/graph/ProgressBar.20.white.gif">';
$result .= '<IMG src="/img/graph/ProgressBar.20.white.gif" alt="">';
}
for ( ; $i >= 10 ; $i -= 10 ) {
$result .= '<IMG src="/img/graph/ProgressBar.10.white.gif">';
$result .= '<IMG src="/img/graph/ProgressBar.10.white.gif" alt="">';
}
for ( ; $i >= 2 ; $i -= 2 ) {
$result .= '<IMG src="/img/graph/ProgressBar.2.white.gif">';
$result .= '<IMG src="/img/graph/ProgressBar.2.white.gif" alt="">';
}
for ( ; $j >= 20 ; $j -= 20 ) {
$result .= '<IMG src="/img/graph/ProgressBar.20.gray.gif">';
$result .= '<IMG src="/img/graph/ProgressBar.20.gray.gif" alt="">';
}
for ( ; $j >= 10 ; $j -= 10 ) {
$result .= '<IMG src="/img/graph/ProgressBar.10.gray.gif">';
$result .= '<IMG src="/img/graph/ProgressBar.10.gray.gif" alt="">';
}
for ( ; $j >= 2 ; $j -= 2 ) {
$result .= '<IMG src="/img/graph/ProgressBar.2.gray.gif">';
$result .= '<IMG src="/img/graph/ProgressBar.2.gray.gif" alt="">';
}
$result .= '</TD><TD>&nbsp;</TD><TD align="left" >' . $comments . '</TD></TR>';
echo $result;