How to write the top posts on the website?

Source: Internet
Author: User
How can I add the top step and step on the top of my website? how can I add the top and step on the top of an article? I hope you can give an example, thanks... Html? Top & amp; top, top, and top
I hope you can give me an example of how to add the top and top features in an article. thank you... Html? Top & step on sharing:
------ Solution --------------------
Two additional top-record and step-on fields should be added in the table.
Use the update command to modify the value when you click it.
------ Solution --------------------
In this example, CSDN is useful to me and can be used to drop bricks.
------ Solution --------------------
We recommend using Baidu to share
------ Solution --------------------
Jquery. get or. post process the submitted data and return the processing result. js is used to read the display.
------ Solution --------------------
A simple example



Script


$ (Function (){
$ ('Button '). click (function (){
$ (This ). next (). load ('top _ tread. php ', {id: $ (this ). parent (). attr ('id'), action: certificate (this).html (), num: partition (this).next().html ()});
});
});
Script


Top Step on
Top Step on
Top Step on


Top_tread.php
 /*
Incoming data
$ _ POST ['id'] hyped id
$ _ POST ['action'] top, step
$ _ POST ['num'] the value displayed on the page.
You can use these parameters to operate the database.
Here I simply add 1 to return
*/
Echo $ _ POST ['num'] + 1;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.