AJAX Pagination using jQuery and PHP with Animation

    Rating: ★★★★☆
    View: 166
    Download: 173
    Từ khóa:

     Its animated loading of records using jquery animation. I hope you will like it very much as it looks nice.

    How to use:

    1.Create Database like this

    CREATE TABLE IF NOT EXISTS `records` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `message` text NOT NULL,
      `image` varchar(200) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
    
    --
    -- Dumping data for table `records`
    --
    
    INSERT INTO `records` (`id`, `message`, `image`) VALUES
    (1, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry''s standard dummy text ever since the 1500s,', '1.png'),
    (2, 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don''t look even slightly believable.', '2.png');

    2. Markup Jquery

    $(document).ready(function(){
    
    	function showLoader(){
    
    		$('.search-background').fadeIn(200);
    	}
    
    	function hideLoader(){
    
    		$('.search-background').fadeOut(200);
    	};
    
    	$("#paging_button li").click(function(){
    
    		showLoader();
    
    		$("#paging_button li").css({'background-color' : ''});
    		$(this).css({'background-color' : '#006699'});
    
    		$("#content").load("data.php?page=" + this.id, hideLoader);
    
    		return false;
    	});
    
    	$("#1").css({'background-color' : '#006699'});
    	showLoader();
    	$("#content").load("data.php?page=1", hideLoader);
    
    });

    3. Markup HTML

      // paging numbers goes here

     

    loading Đang tải...

    template được ưa chuộng