loading on top of div jquery code example
Example 1: scrool to top jquerry
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
Example 2: display div while load
<script>
$(window).load(function() {
$('#loading').hide();
});
</script>