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