HTML page, click on the link on the left, and display the content reference code on the right.

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>untitled document</title>
<script type= "Text/javascript" >
function Funcshow (ID) {
for (Var i=0;i<5;i++) {
var divinfo =document.getelementbyid (' div ' + (i+1));
Divinfo.style.display= ' None ';
}
var div =document.getelementbyid (' div ' +id);
div.style.display= ' block ';
}
</script>
<body>
<table width= "632" border= "1" >
<tr>
&LT;TD width= "><a href=" javascript:funcshow (1) ">1 </a></td>
&LT;TD width= "550" colspan= "4" rowspan= "5" >
<div id= "Div1" style= "Display:block" > here to show the contents of the id "DIV1" aaaaaaaaaaa</div>
<div id= "Div2" style= "Display:none" > Here D "div2" content </div>
<div id= "Div3" style= "Display:none" > here Show id "di capacity </div>
<div id= "Div4" style= "Display:none" > here ccccccccccv4 "Content </div>
<div id= "div5" style= "Display:none" > here to show bbbbbbbbbbb "Contents </div></td>
</tr>
<tr>
<td><a href= "Javascript:funcshow (2)" >2 </a></td>
</tr>
<tr>
<td><a href= "Javascript:funcshow (3)" >3 </a></td>
</tr>
<tr>
<td><a href= "Javascript:funcshow (4)" >4 </a></td>
</tr>
<tr>
<td><a href= "Javascript:funcshow (5)" >5 </a></td>
</tr>
</table>

</body>

HTML page, click on the link on the left, and display the content reference code on the right.

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.