2011-03-17 40 views

回答

2

這是你想要的嗎? :http://jsfiddle.net/JpsjX/1/

用回調修改animate()函數就可以了。

$('html, body').animate({scrollTop:target_top}, 500, function(){ 
    $("#footer").fadeOut('slow'); 
}); 
+0

謝謝@JohnP – wow 2011-03-17 16:07:05