On this page, clicking the image not only selects the corresponding radio, but the surrounding border changes color for the selected state. (It also has a CSS hover state for browsers that support it.)
Download the zip that contains all images, js, and CSS.



For sake of demonstration, and to make it easy for you to view source for everything, both CSS and JavaScript are in the head of this document. In real-world implementation, it is best practice to use external files for each when possible.