我有這個代碼,它顯示了一個盒子裏的工具提示,裏面有「tooltip-container」的id - 目前它只是彈出...我怎麼才能使它淡入淡出和淡出滾動?將淡入淡出效果應用於工具提示?
當前代碼:
$(document).ready(function(){
$('.tippytrip').hover(function(){
var offset = $(this).offset();
console.log(offset)
var width = $(this).outerWidth();
var tooltipId = $(this).attr("rel");
$('#tooltip-container').empty().load('tooltips.html ' + tooltipId).show();
$('#tooltip-container').css({top:offset.top, left:offset.left + width + 10}).show();
}, function(){
$('#tooltip-container').hide();
});
});
謝謝你:) – user1145334 2012-02-02 13:23:18