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> </td>
<td id=progress2 width=10% bgcolor=#cccccc> </td>
<td id=progress3 width=10% bgcolor=#cccccc> </td>
<td id=progress4 width=10% bgcolor=#cccccc> </td>
<td id=progress5 width=10% bgcolor=#cccccc> </td>
<td id=progress6 width=10% bgcolor=#cccccc> </td>
<td id=progress7 width=10% bgcolor=#cccccc> </td>
<td id=progress8 width=10% bgcolor=#cccccc> </td>
<td id=progress9 width=10% bgcolor=#cccccc> </td>
<td id=progress10 width=10% bgcolor=#cccccc> </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.