The following links should take on hover, active, and visited states. The markup has been kept as simple as possible for easy study.
The CSS is a little different than that presented in the article, but the effect is exactly the same. It's just been rearranged to take advantage of the cascade, and thus impart more clarity.