For a piece of source code, I want to write a page that is a little the same as Sina's meager page (load to the end of the drop-down, after loading the three sections, the page number is displayed ). I also asked how to write it. I got a Sina meager source code, but unfortunately it was JAVA and I couldn't understand it. Have you done this ?, Load as needed? This effect needs to be implemented by js. php is only responsible for providing data. jquery has such plug-in to display the content. most of them are explicit source code.
I want to write a paging
The page size is a bit the same as that of Sina. (the page size is displayed after three sections are loaded from the drop-down list ).
I also asked how to write it. I got a Sina meager source code, but unfortunately it was JAVA and I couldn't understand it.
What have you done?
------ Solution --------------------
Load as needed?
This effect needs to be implemented by js. php is only responsible for providing data.
------ Solution --------------------
Jquery has such a plug-in to display the content. most of the content is the display image, which is loaded when the screen arrives, but the plug-in name remains the same.
------ Solution --------------------
There are many:
10 jquery plug-ins for automatic page turning with unlimited scrolling
------ Solution --------------------
The key is to determine the position of the vertical scroll bar.
When the top of the scroll bar reaches a certain position, request data from php through ajax
This is a loop.
------ Solution --------------------
On one side, there are 10 Weibo posts. js maintains the number of entries on the current user's page. it is updated using ajax and changes the number of entries. if the number of entries exceeds 30, JS deletes the last 20 entries and adds the next page button.
Other statuses are maintained by the server:
1. use ajax to pull data. the server database maintains the last pull Time t1 and pushes the entries after t1 to the user.
2. click the next page, and the server queries the database in chronological order. the page is displayed.
Is it difficult.
------ Solution --------------------
I already said, this is not a php issue.
Give you a core code, and you need to learn to do the next thing on your own.
JScript code