HTML question

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
L

Lloyd Sheen

I have a status bar which I use javascript to update with progress. I take
the duration of the event and calculate the % which is complete and then use
that as the width attribute for a <td>. There are two <td>'s, the first for
the completed progress and the second to hold the remaining time.

What I would like to be able to do is overlay the graphic (bar graph) with
text as to the amount of time passed and the duration of the event (eg
02:27 / 03:54).

Is this possible? The "progress meter" is part of a dragable panel (Ajax
toolkit).

Thanks
Lloyd Sheen
 
Hi Lloyd,

Your question indicates some advanced work with .NET and I am guessing you
have mucho more experience than I do.

Anyway, if you haven't found your answer yet, at the risk of sounding
stupid:

If you are using the bar graph graphic as a background image, what is
keeping you from displaying text between the <td> and </td> tags which will
show up over the background graphic, especially if you center align the
<td>?

Just my 2 cents. I am guessing that what you're doing is too complicated for
such a simple solution to work.
 
Addendum...

Since you are setting the width attribute of the table cell from JavaScript
using the DOM you most likely have a reference to the cell and you can use:

theCell.innerHTML = '02:27 / 03:54'

Or you can use a more conventional DOM approach to do accomplish same thing.
 
Back
Top