Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadMore() {
- start += 10;
- var nextlink = $("#nav tr td:last a").attr('href');
- var currenturl = window.location;
- url = currenturl + '&start=' + start;
- $("#tempresults").load(url + ' #res');
- $("#tempresults").attr('id', 'oldtemp');
- $('<div id="tempresults" class="moreloaded"></div>').insertAfter(".moreloaded:last");
- }
- $(document).ready(function() {
- $(window).scroll(function(){
- if ($(window).scrollTop() == $(document).height() - $(window).height()){
- loadMore();
- }
- });
- start = 0;
- $('<div id="tempresults" class="moreloaded"></div>').insertAfter("#res");
- });
Add Comment
Please, Sign In to add comment