Use an "image replacement" technique of your choice to change, or more correctly, reveal the background graphic for the rollover (hover) state and the "sliding door" technique for the onclick (active) state
Although you can use the sliding door technique alone to achieve the same effect, it doesn't result in the same degree of accessibility as this example.