Using scripting to control the display of page table hide (full code) _ax_javascript tips

Source: Internet
Author: User
Demand
If everyone has logged in
I'm proud: http://www.woall.com
Sina Blog and so on
You will find that you can click on the column title, you will find that the column can be expanded and put up, very easy to use! In fact, this function is very simple to achieve. The point is to find the table row to hide and control its display property.
We strongly recommend that you login: http://www.woall.com hands-on experience!
"Another" post site how to add links Ah???
"Source" Use method: The file test down, save as HTM type of file can!
<textarea id="runcode54815"><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "Content=" Tex t/html; charset=gb2312 "/> <title> Untitled document </title> <script language=" JavaScript > <!--function Axzh Z (hideme) {var ax=document.all (hideme);//Declare a variable ax.style.display=ax.style.display== "None" "": "none";//To determine whether or not to hide //--> </script> </pead> <body> <table width= "border=" 1 > <!--title is mouse On the top when the hint--> <tr title= "Come on, come on!!" onclick= axzhz (' AX ') "> <td bgcolor=" #FF9933 "> You order me!! </td> </tr> <tr id= "AX" > <td bgcolor= "#0099FF" >axzhz production </td> </tr> ; </table> </body> </ptml></textarea>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

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.