una cosa del genere mi sembra meno arbitraria (perche' non legata al mezzo documento)
ciaocodice:var totalTime=6000; $('#down, #up').mouseenter(function(){ var totalDistance = $(document).height(); var isUp=!!$(this).is('#up'); var pos=$(window).scrollTop(); var dest=(isUp)?0:totalDistance; var time=(pos-dest)*(totalTime/totalDistance) if(time<0) time*=-1; $('html, body').animate({scrollTop: dest}, time, 'linear'); }) $('#down, #up').mouseleave(function(){ $('html, body').stop(); })