Hi
little stuck on this jquery.
I have a banner above my nav bar, which is a list. Ideally, when I hover over a li in the navbar, I would like a "caption" to slide in on top of the banner div.
I guess something like:
<div id="banner">
<div class="home_caption">This is Home!</div>
<div class="about_caption">This is About!</div>
</div>
<div id="navbar">
  <ul>
    <li id="home"><a href="#">Home</a></li> 
    <li id="about"><a href="#">About</a></li>
  </ul>
</div>
so if i hover over "home", the "home_caption" DIV will slide in to view on top of "banner" div.
jquery:
$(document).ready(function(){
     $('#home').hover(function(){
      $(".home_caption", this).stop().animate({top:'160px'},{queue:false,duration:160});
     }, function() {
      $(".home_caption", this).stop().animate({top:'260px'},{queue:false,duration:160});
     });
});
i have looked at https://buildinternet.s3.amazonaws.com/live-tutorials/sliding-boxes/index.htm but not sure if its adaptable to my needs - i.e the "hover" area is outside of the "caption" area.
thanks