/* ------------------------------------------- * tooltip.js ------------------------------------------- */ $(function(){ var $ttKey = $(".slideImg a"); var $ttBody = $(".tooltips"); // first setting $ttBody.hide(); // init $ttKey.hover(function(){ $(this).parent().next().stop(true, false) .css({"z-index":"9999","display":"block"}) }, function() { $(this).parent().next().stop(true, false) .css({"z-index":"0","display":"none"}) }); });