you can use javascript. just substitute your parameters into the javascript code. here is an example of the javascript:
http://slackerhtml.tripod.com/dhtml/progressbar.html