// BEFORE
// -html
// -css
.btnAboutUs
{
background: url(images/aboutus_idle.gif) center center;
width: 69px;
cursor: pointer;
height: 28px;
border: none;
}
.btnAboutUs-Over
{
background: url(images/aboutus_over.gif) center center;
width: 69px;
cursor: pointer;
height: 28px;
border: none;
}
.btnAboutUs-OnClick
{
background: url(images/aboutus_click.gif) center center;
width: 69px;
cursor: pointer;
height: 28px;
border: none;
}
// AFTER
// -html
// -css
.btnAboutUs
{
background: url(images/aboutus_idle.gif) center center;
width: 69px;
cursor: pointer;
height: 28px;
border: none;
}
.btnAboutUs#over
{
background: url(images/aboutus_over.gif) center center;
}
.btnAboutUs#click
{
// changed picture completely (including size), not so smart but just showing that it's possible
background: url(images/aboutus_click.gif) center center;
width: 145px;
height: 57px;
}
// AFTER THAT
// -HTML
// note the a-tags
// -CSS
.btnAboutUs
{
background: url(images/menu_aboutus_idle.gif) center center;
width: 69px;
cursor: pointer;
height: 28px;
border: none;
}
a:hover .btnAboutUs
{
background: url(images/menu_aboutus_over.gif) center center;
}
/* there's no a:click so we can't detect it */