当鼠标移到一个 id="non_tech" 的元素上时,没有让 div_tech div 向下滑动,该元素位于另一个 div 中,鼠标滑过“事件”
相关的 html 代码是
<div class="events">
<img src="arrow.png" alt="arrow" class="img_arw" />
<table class="tab_evnts">
<tr>
<td class="eve_mentd" id="tech">
<a href="#">
<span class="eve_men">Technical</span>
</a>
</td>
</tr>
<tr>
<td class="eve_mentd" id="non_tech">
<a href="#">
<span class="eve_men">Non- Technical</span>
</a>
</td>
</tr>
<tr>
<td class="eve_mentd" id="gamers">
<a href="#">
<span class="eve_men">Gamer's Inn</span>
</a>
</td>
</tr>
</table>
<div class="tech_div">
</div>
</div>
<table >
<tr>
<td class="menu"><a href="#" title="Home">Home</a></td>
<td class="menu"><a href="#" id="eves">Events</a></td>
<td class="menu"><a href="#" title="Tuneback">Tuneback</a></td>
<td class="menu"><a href="#" title="Registration">Registration</a>
</td><td class="menu"><a href="#"title="Helpdesk">Helpdesk</a></td>
</tr>
</table>
相关的jquery代码是
$(document).ready(function() {
$('#eves').mouseenter(function() {
$('.events').stop().slideDown("fast");
}, function() {
$('.events').stop().slideUp("fast");
});
$('#non_tech').hover(function() {
$("tech_div").slideDown("slow");
});
});