Switch image for link
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> a span { display: none; } a:link { display: block; width: 125px; height: 30px; background-image: url(btn.gif); background-repeat: no-repeat; background-position: top left; } a:link:hover { display: block; width: 125px; height: 30px; background-image: url(btn_roll.gif); background-repeat: no-repeat; background-position: top left; } a:link:active { display: block; width: 125px; height: 30px; background-image: url(btn_on.gif); background-repeat: no-repeat; background-position: top left; } </style> </head> <body> <a href="/" id="linkhome"> <span>Homepage</span> </a> </body> </html>