$(document).ready(function(){$('body').append('
Top
');$(window).scroll(function(){if($(this).scrollTop()!=0){$('#toTop').fadeIn();}else{$('#toTop').fadeOut();}});$('#toTop').click(function(){$("html, body").animate({scrollTop:0},600);return false;});});