Javascript Rating Meter

August 31, 2006

Update: A newer version is outlined in this post.

Due to a discussion I had earlier today, I was thinking about how to make one of those little star meters where you can click to set the rating and they change colors. I took some time to code up this quick version.

I didn’t want to use image swapping, because that wouldn’t be as flexible. So instead, you change the background color and have a transparent cutout of the image you want over that. It’ll make more sense once I get an example made.

For now, here’s my prototype. It needs a lot of work to make it into a good script, but it’s a start. Example Here

Categories: Geek
Tags: ,


  1. […] between classes today I updated the meter. It’s essentially the same script, just it changes background images now, instead of having […]

Leave A Comment

Your email will not be published.