Create a message board with the drop-down function
Source: Internet
Author: User
Make a message board with a pull-down function and read it as a message board with a pull-down function. if the message board contains too long messages, the page will be extended, do you feel uncomfortable with those long message versions? every time you try to have a scroll bar many times. If only the title appears at the beginning, click the title to display the content below (note that it is not a pop-up window) "> <LINKhref =" if there is too long message in the http://www.php100.com//s message board, the page will be held for a long time. do you feel uncomfortable with those long message boards, each time, the scroll bar is highlighted many times.
If only the title appears at the beginning, you can click the title to see the content below (note that it is not a pop-up window). Is this good!
Next, let's take a look at how to implement:
First, set the ID of each title and content. this is the ID of the first message. we set the title ID to td1 and the content to tdd1.
Here is the title
Here is the content
Close
"Onclick = goit (tdd1) onmouseout = noit (td1) onmouseover = onit (td1 )"
The three sentences are the mouse event. noit () and onit () only change the color. goit () is the function to open or close the content. the specific function is as follows:
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.