Message version has too long message will put the page to support a very long, everyone to those very long message version is not feel uncomfortable to see, every time a lot of scroll bar.
If only the title appears at the beginning of each time, click on the title will appear below the content (note is not pop-up window), so it is not very good!
Next we'll look at how to do this:
First of all to the title and the content of the ID, which is the first message of the ID set, we put the title of the ID TD1, the content is TDD1, followed by the same.
Here is the title
Here is the content
Shut down
"Onclick=goit (TDD1) onmouseout=noit (TD1) onmouseover=onit (TD1)"
These three sentences are mouse events, Noit () and Onit () just change the color, Goit () is the function to open or close the content, the specific function is:
Finally, do not forget to initialize your page, is to hide the content first.
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