Change the background image of div on hover?

Hi,
I can't work out how to change the background image of ".home_link_cont" from /images/home_page_links_off.png to /images/home_page_links_ovr.png on hover.

Can this be achieved with CSS or jQuery?

Thanks


<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>




</script>
<style type="text/css">

.hoverClassName {
     background: url('/images/home_page_links_ovr.png') !important;
}


.home_link_cont{
	width: 245px;
	height: 265px;
	background-image: url(/images/home_page_links_off.png);
	font-family: "Comic Sans MS", cursive;
	text-decoration: none;
}

.home_link_cont a:link{
	text-decoration: none;
}

.home_link_image{
	margin: 0 auto;
	width: 180px;
	height: 180px;
    padding-top:15px;
}

.home_link_text{
	margin: 0 auto;
	width: 235px;
	padding-top:9px;
	height: 35px;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 18px;
	color: #000;
	text-align: center;
	font-style: italic;
	font-weight: normal;
}


</style>




<div id="home_page_links">


<a href="/index.php?page=display_products&product_category=152">
<div class="home_link_cont">
<div class="home_link_image"><img align="middle" src="/uploads/1176_1_sml.jpg" alt="BOOK STAND" border="0" /></div>
<div class="home_link_text">HOMEWARES</div>
</a></div>

<a href="/index.php?page=display_products&product_category=158">
<div class="home_link_cont">
<div class="home_link_image"><img align="middle" src="/uploads/1081_1_sml.jpg" alt="WALL DECAL" border="0" /></div>
<div class="home_link_text">KIDS</div>
</a></div>

<a href="/index.php?page=display_products&product_category=154">
<div class="home_link_cont">
<div class="home_link_image"><img align="middle" src="/uploads/1099_1_sml.jpg" alt="DECORATIVE HOOKS" border="0" /></div>
<div class="home_link_text">BEACHSIDE</div>
</a></div>

<a href="/index.php?page=display_products&product_category=159">
<div class="home_link_cont">
<div class="home_link_image"><img align="middle" src="/uploads/1075_1_sml.jpg" alt="WINE TABLE" border="0" /></div>
<div class="home_link_text">FURNITURE</div>
</a></div>



</div><!-- end of home_page_links -->

Open in new window

sabecsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
.home_link_cont:hover{
    background-image: url(/images/home_page_links_ovr.png);
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
COBOLdinosaurCommented:
Why are you using !important.  That should not be necessary unless you have a design defect.

Cd&
0
sabecsAuthor Commented:
Thanks Gary, that is perfect...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.