I know this is easy, just drawing a blank.
If you look at this page (all JS/CSS is on the one page), http://dl.dropbox.com/u/904456/expander.html
You can see what I have. Basically I would like to do two things differently.
A.) I would only like to show the .module .caption for the .module hovered, not both of them when either is hovered. B.) I would like to slideOut rather then simply .show() and slideIn rather then simply .hide() (on hover and unhover.)
$(document).ready(function() {
$(".module .caption").hide();
$(".module").hover(function() {
$(".module .caption").show();
},function() {
$(".module .caption").hide();
});
});
And my markup looks like:
<div class="module span-1">
<div class="inside">HOVER</div><!-- end .inside -->
<h1>TITLE</h1>
<div class="caption">
<p>Caption ipsum lorem dolor ipsum lorem dolor ipsum lorem dolor ipsum lorem dolor</p>
</div><!-- end .caption -->
</div><!-- end .module -->
<div class="module span-2">
<div class="caption">
<p>Caption ipsum lorem dolor ipsum lorem dolor ipsum lorem dolor ipsum lorem dolor</p>
</div><!-- end .caption -->
<div class="inside">HOVER</div><!-- end .inside -->
<h1>TITLE</h1>
</div><!-- end. module -->
Would love some assistance! And if your feeling especially generous, an explanation on your method (for next time). Thanks!