Home > Backend Development > PHP Tutorial > php jquery implements news tag classification and refresh-free paging_PHP tutorial

php jquery implements news tag classification and refresh-free paging_PHP tutorial

WBOY
Release: 2016-07-21 15:42:44
Original
1070 people have browsed it

Nowadays, jquery is used more and more widely, and the effect of tag classification + non-refresh paging has been implemented in the news section of many websites.
I also tried to write one myself, and the rendering is as follows (the style can be customized according to user needs):

The implementation process will be introduced in detail below:

I have always tried to solve the problem by seeing the tricks. Three things need to be used here - tab effect plug-in and paging plug-in, and jquery's getJson request.

So I used the jquery-ui plug-in and jquery-page plug-in. The download address is now provided:

jquery_all.rar
It contains 3 JS script files and 2 Style sheets:
jquery-1.3.2.min.js
jquery.pager.js
jquery-ui-1.7.2.custom.min.js
jquery-ui-1.7.2 .custom.css

Page.css
The html page code is as follows:

Copy the code The code is as follows:




php + jquery ui + jquery pager

< link rel="stylesheet" href="/css/page.css" type="text/css" />