I have looked and looked and looked but i can't find what i'm looking for.

I need a progress bar that counts down and shows the time inside the bar as it is counting down.

it doesn't have to be fancy it just has to work.

what i'm doing now is a periodic update using ajax and then changing the size of a bar in css.

it works but it is not ideal.

does anyone know where i can find a tutorial for creating a countdown bar?

it can be jQuery or just javascript i'm getting half decent at both.

thank you.