Change the background image of div on hover?

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?


<script src="">

<style type="text/css">

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

	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;

	margin: 0 auto;
	width: 180px;
	height: 180px;

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


<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 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 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 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>

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

Open in new window

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.

    background-image: url(/images/home_page_links_ovr.png);

Open in new window


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
Why are you using !important.  That should not be necessary unless you have a design defect.

sabecsAuthor Commented:
Thanks Gary, that is perfect...
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

From novice to tech pro — start learning today.