Sposto in JavaScript, visto che l'intera questione si deve risolvere lato client.

P.S.: http://stackoverflow.com/questions/1...d-progress-bar