Just 2?
Article
It uses the :visited css psuedotag to display the message based on your browser history.