Home  >  Article  >  Backend Development  >  QQ space message board Make a message board with drop-down function

QQ space message board Make a message board with drop-down function

WBOY
WBOYOriginal
2016-07-29 08:33:291470browse

If there are too long messages in the message board, it will make the page very long. Do you think those very long message boards are uncomfortable to read, and you have to click the scroll bar many times every time.
If only the title appears at the beginning each time, click on the title and the content will appear below (note that it is not a pop-up window), wouldn’t this be great!
Next, let’s see how to implement it:
First, set an ID for each title and content. This is the ID setting for the first message. We set the ID of the title to td1 and the content to tdd1. The rest is the same.

​ This is the title


Here is the content


Close
< /DIV>


" "
These three sentences are mouse events, noit() and onit() just change the color, goit() is the function to open or close the content, specifically The function is below:

Finally, don’t forget to initialize your page by hiding the content first”

The above has introduced the qq space message board. Making a message board with a drop-down function includes the content of the qq space message board. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn