I was looking for a simple way to make rating stars, I found this post http://css-tricks.com/star-ratings/ that is a very simple way to do it, but I didn't know what to make when there was already a rating that I want to show.
So I made this script http://jsfiddle.net/dn3Kr/, actually it will be part of a wordpress plugin, I hope it is useful for you.