Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

de4th

By: a guest on Nov 3rd, 2009  |  syntax: JavaScript  |  size: 0.31 KB  |  views: 1,562  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div id="next">Next</div>
  2. <input type="hidden" id="currentPage" value="1">
  3.  
  4. $("#next").click(function(){
  5.                
  6.   Display_Load();
  7.   var cur = $("#currentPage").val();
  8.   var pageNum = Number(cur) + 1;
  9.   $("#currentPage").val(pageNum);
  10.   $("#content").load("pagination_data.php?page=" + pageNum, Hide_Load());              
  11.  
  12. });