I'm sure there's something really simple I'm missing, but for the life of me I can't figure it out.
here's a link to the page: http://smple.com/jquery/image_alt/ Basically, I just want the current .jpg to display the pop up box. Here's the .js --------------------------------------------------------------------------------------------- $(document).ready(function(){ $("img").wrap("<div class=\"images\"></div>"); $("img").after("<span></span>"); $(".images img").hover( function(over){ var imgName = $(this).attr("alt"); $("span").text(imgName); var altHeight = $("span").height(); $("span").animate({ bottom: altHeight }, 400); }, function(out){ var imgName = $(this).attr("alt"); $("span"); $("span").animate({ bottom: "0px" }, 400); } ); }); Thanks for any help:)