The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Scroll to top slider
Hi all,
I got stuck at the moment with a scroll to top slider, It slides fine but when i click the scroll to top div it’s stay on top and i can’t scrll down
can someone help me out?
amorz
$(window).scroll(function () { var scrollTop = $(document).scrollTop(); scrollTop = parseInt(scrollTop);
var offset = amorzScroll+scrollTop+”px”; $(“#toplink”).animate({top:offset},{duration:700,queue:false});
$(‘#toplink’).click( function (e) { $(‘html, body’).animate({scrollTop: ‘0px’}, 800); } ); });