The simplest way of doing that (but no Javascript)

Image not found

A more reusable way, with Javascript (look at the source):

Image not found

Another way, with Javascript (look at the source):

Image not found