for dynamic hover effect update jquery with:
$(".hoverme").hover(function(){
var showdiv = $(this).attr('id');
/* it will select the link which is hovered and then will show the
corresponding div which we had sync with alt attr */
$(".hideme").hide();
$("[class='hideme'][alt='"+showdiv+"']").slideToggle(400);
});
where your HTML will be:
<ul>
<li><div id="link_1" class="hoverme">Link #1</div> </li>
<li><div id="link_2" class="hoverme">Link #2</div> </li>
<li><div id="link_3" class="hoverme">Link #3</div> </li>
</ul>
<div alt="link_1" class="hideme">Contents1</div>
<div alt="link_2" class="hideme">Contents2</div>
<div alt="link_3" class="hideme">Contents3</div>
and CSS will be:
.hoverme
{
margin-top: 30px;
width: 130px;
height: 53px;
border: 1px solid #000;
}
.hideme
{
width: 100%;
height: 470px;
background-color: #fff;
display:none;
position: relative;
color: #000;
}