Website Tutorials
Recipes
Entertainment Reviews
Home Remedies
Game Codes and Cheats
MySpace Website Tutorials | Submited Dec 27, 2007
Written by: Mr. Evil
Notes

The image:
<a class="hoverImg" href="#">
<img src="PRE-HOVER_IMAGE_URL_HERE" width="180" height="250"/>
</a>
:hover
.37182{hide the pre-hover image}
a.hoverImg img:hover{visibility:hidden;}
.37182{replace it}
a.hoverImg:hover{
display: block;
width: 180px;
height: 250px;
background-image: url(POST-HOVER_IMAGE_URL_HERE)
}
a.hoverImg:hover{cursor: default;}
If you're making a nav-bar..
<ul class="nav">
<li><a href="/">blahh</a></li>
<li><a href="/">blahh</a></li>
<li><a href="/">blahh</a></li>
</ul>
.nav{list-style-type:none;}
.nav a{
padding: 10px 20px;
note:(we have to use padding in this case, 10px is for the top/bottom, 20px is for the left/right);
background-image:url(pre-hover_IMAGE_URL_HERE);
background-position:center top;
background-repeat:no-repeat;
background-attachment:scroll;
background-color:000;
}
.nav a:hover{
background-image:url(post-hover_IMAGE_URL_HERE);
background-position:center top;
background-repeat:no-repeat;
background-attachment:scroll;
background-color:000;
}