View Single Post
Old 08-10-2003, 06:27 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
of course i tried it .. it did not work.

i was making a php/javascript progress bar .. so you could show progress on the client even while something server-side was processing =)

i did something like this:

Code:
<table border=0 cellspacing=1 cellpadding=0 width=600 heigth=20>
<tr>
  <td id=progress1 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress2 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress3 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress4 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress5 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress6 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress7 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress8 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress9 width=10% bgcolor=#cccccc>&nbsp;</td>
  <td id=progress10 width=10% bgcolor=#cccccc>&nbsp;</td>
</tr>
</table>


<script>document.getById('progress1').bgColor='navy';</script>
<script>document.getById('progress2').bgColor='navy';</script>
<script>document.getById('progress3').bgColor='navy';</script>
<script>document.getById('progress4').bgColor='navy';</script>
<script>document.getById('progress5').bgColor='navy';</script>
<script>document.getById('progress6').bgColor='navy';</script>
<script>document.getById('progress7').bgColor='navy';</script>
<script>document.getById('progress8').bgColor='navy';</script>
<script>document.getById('progress9').bgColor='navy';</script>
<script>document.getById('progress10').bgColor='navy';</script>
i would still like to get the number in the table width to dynamically increment, .. but i could only get this to work within a class . like span, div, or a table cell.
__________________
Mike
sde is offline   Reply With Quote