This demo demonstrates why GIF is inferior to PNG.
Hover the cursor over the image to see how it is designed to be placed only over a specific color.

Note that the hover effect requires a browser that supports the CSS2 :hover pseudo-class correctly; an example of an archaic browser that does not is Internet Explorer 6.