Advertisement
alchymyth

Untitled

Sep 15th, 2011
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript" src="http://localhost/wordpress/wp-content/plugins/infinite-scroll/jquery.infinitescroll.min.js"></script><script type="text/javascript">
  2.                     //We leave a function outside the infinite-scroll area so that it works with older jQuery versions
  3.                     function infinite_scroll_callback() {
  4.                            
  5.                         }
  6.                     jQuery(document).ready(function($) {
  7.                     // Infinite Scroll jQuery+Wordpress plugin
  8.                     // Now we're inside, we should be able to use $ again
  9.                     $('#container').infinitescroll({
  10.                         debug           : false,
  11.                         loading         : {
  12.                             img         : "http://localhost/wordpress/wp-content/plugins/infinite-scroll/ajax-loader.gif",
  13.                             msgText     : "<em>Loading the next set of posts...</em>",
  14.                             finishedMsg : "<em>Congratulations, you've reached the end of the internet.</em>"
  15.                             },
  16.                         state           : {
  17.                             currPage    : "1"
  18.                             },
  19.                         nextSelector    : "div.nav-previous a:contains(Older)",
  20.                         navSelector     : "div.navigation",
  21.                         contentSelector : "#container",
  22.                         itemSelector    : "#container",
  23.                         pathParse       : ["http://localhost/wordpress/page/", ""]
  24.                         }, function() { window.setTimeout(infinite_scroll_callback(), 1); } );
  25.                     });
  26.                     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement