JS implementation of the connection mode menu

Source: Internet
Author: User

<meta http-equiv= "Content-language" content= "ZH-CN" >
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title> Arisisi Web Effects demo, using JS to implement a similar framework of link navigation mode </title>
<script language=javascript>
function Secboard (n)
{
for (i=1;i<6;i++)
{
Eval ("document.getElementById (' cel ' +i+" '). style.background= ");
}
Eval ("document.getElementById (' Cel" +n+ "). style.background= ' CCCCCC '");
for (i=1;i<6;i++)
Eval ("tbx0" +i+ ". style.display= ' None ');
Eval ("tbx0" +n+ ". style.display= ' block '");
}

</SCRIPT>

<body>

<div align= "center" >
<table border= "0" width= "cellpadding=" 0 "style=" border-collapse:collapse "id=" table1 ">
<tr>
&LT;TD width= "height=" align= "center" valign= "Top" >
<table border= "0" width= "100%" cellpadding= "2" id= "Table28" >
<tr>
&LT;TD valign= "Top" >
<div align= "center" >
<table border= "1" width= "100%" cellspacing= "0" cellpadding= "0" style= "Border-collapse:collapse" bordercolor= "# FF0000 "id=" Table29 ">
<tr>
&LT;TD Id=cel1 Onclick=secboard (1) style= "Cursor:hand" height= "" align= "center" > Link 1</td>
</tr>
<tr>
&LT;TD Id=cel2 Onclick=secboard (2) style= "Cursor:hand" height= "" align= "center" > Link 2</td>
</tr>
<tr>
&LT;TD id=cel3 Onclick=secboard (3) style= "Cursor:hand" height= "" align= "center" > Link 3</td>
</tr>
<tr>
&LT;TD Id=cel4 Onclick=secboard (4) style= "Cursor:hand" height= "" align= "center" > Link 4</td>
</tr>
<tr>
&LT;TD Id=cel5 Onclick=secboard (5) style= "Cursor:hand" height= "" align= "center" > Link 5</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
&LT;TD valign= "Top" >
<table border= "0" width= "100%" cellpadding= "2" id= "Table2" >
<tr>
<td>
<div align= "center" >
<table border= "1" width= "100%" cellspacing= "0" cellpadding= "0" style= "Border-collapse:collapse" bordercolor= "# 0000FF "id=" Table3 ">
<tr>
&LT;TD valign= "Top" ><table id=table27 cellspacing=0 cellpadding=0 width=300
Border=0>
<TBODY>
<TR>
&LT;TD width=1 bgcolor= #a9a9a9 height= "1" ></TD>
&LT;TD class= "P2" width=298 bgcolor= "#CCCCCC" height= "1" ></TD></TR>
<TR>
&LT;TD width=1><br></td>
&LT;TD class= "P2" width=298>
<table id=tbx01 style= "Display:block"
Cellspacing=5 cellpadding=0 width= "100%"
Align=center border=0>
<TBODY>
<TR>
&LT;TD class= "P2" >
<p style= "line-height:150%" >
<font color= "#FF0000" ><b> links 1 content:</b></font> drinks cigarettes Shandong Northeast official Hunan Cuisine su vegetables Shaanxi <BR> Hubei Huai Yang Western Wine cigarettes Shandong Northeast Official Hunan Cuisine su vegetables Shaanxi <BR> Hubei Huai Yang Western food drinks cigarettes Shandong Northeast official Hunan su vegetables Shaanxi <BR> Hubei Huai Yang Western Wine cigarettes Shandong Northeast official Hunan Cuisine su Cai Shaanxi <BR> Hubei Huai Yang Western food </td& Gt;</tr></tbody></table>
<table id=tbx02 style= "Display:none"
Cellspacing=5 cellpadding=0 width= "100%"
Align=center border=0>
<TBODY>
<TR>
&LT;TD class= "P2" >
<p style= "line-height:150%" >
<font color= "#FF0000" ><b> links 2 content:</b></font> Guan Qian Jie Lu Guang Ji Road shi Lu Zhu Jia Zhuang xi Dan chongwenmen

Suzhou Street Fangzhuang Stone Road Zhu Jia Zhuang Xidan chongwenmen

Suzhou Street Fangzhuang Stone Road Zhu Jia Zhuang Xidan chongwenmen

Suzhou Street Fangzhuang Street, Renmin Road, Guang Ji Lu Shi Lu Zhu Jia Zhuang xidan chongwenmen

Suzhou Street Fangzhuang Stone Road Zhu Jia Zhuang Xidan chongwenmen

Suzhou Street Fangzhuang Stone Road Zhujiajiao Front Street Renmin Road Guang Ji Lu Shi Lu Zhu Jia Zhuang xidan chongwenmen

Suzhou Street Fangzhuang Stone Road Zhu Jia Zhuang Xidan chongwenmen

Suzhou Street Fangzhuang Stone Road Zhu Jia </TD></TR></TBODY></TABLE>
<table id=tbx03 style= "Display:none"
Cellspacing=5 cellpadding=0 width= "100%"
Align=center border=0>
<TBODY>
<TR>
&LT;TD class= "P2" >
<p style= "line-height:150%" >
<font color= "#FF0000" ><b> links 3 content:</b></font> boiled fish roast duck spicy crab hotpot lamb Scorpion Farm Food BBQ Snacks <BR> abalone Wings fast food
Fish Roast Duck spicy crab hotpot Sheep scorpion Farm Food bbq fish Roast duck spicy crab hotpot Sheep scorpion Farm Food BBQ Spicy Crab
Hotpot Sheep Scorpion Farm Food bbq fish Roast duck spicy crab hotpot Sheep scorpion Farm Food BBQ spicy crab hotpot Sheep Scorpion
Farm Food BBQ fish Roast duck spicy crab hotpot Sheep Scorpion Farm Food BBQ </TD></TR></TBODY></TABLE>
<table id=tbx04 style= "Display:none"
Cellspacing=5 cellpadding=0 width= "100%"
Align=center border=0>
<TBODY>
<TR>
&LT;TD class= "P2" >
<p style= "line-height:150%" >
<font color= "#FF0000" ><b> links 4 content:</b></font> boiled fish roast duck spicy crab hotpot lamb Scorpion Farm Food BBQ Snacks <BR> abalone Wings fast food
Farm Food BBQ Snacks <BR> Shark's fin fast food BBQ snacks <BR> braised fish roast duck with shark's fin and fast food
Spicy crab hotpot Sheep Scorpion Farm Food BBQ Snacks <BR> Shark's fin fast food
Farm Food BBQ Snacks <BR> Shark's fin fast food BBQ snacks <BR> Shark's fin fast food </TD></TR></TBODY></TABLE>
<table id=tbx05 style= "Display:none"
Cellspacing=5 cellpadding=0 width= "100%"
Align=center border=0>
<TBODY>
<TR>
&LT;TD class= "P2" >
<p style= "line-height:150%" >
<font color= "#FF0000" ><b> links 5 content:</b></font> boiled fish roast duck spicy crab hotpot lamb Scorpion Farm Food BBQ Snacks <BR>
Abalone-fin fast food fast food fast food fast food fast food fast food snack fast food fast food fast food boiled fish roast duck spicy crab
Hotpot Sheep Scorpion Farm Food BBQ Snacks <BR>
Braised shark's fin fast food fast food quick cooked fish roast duck spicy crab hotpot Sheep Scorpion Farm Food BBQ Snacks <BR>
Shark's fin snack fast food </TD></TR></TBODY></TABLE></TD> quick snack
&LT;TD width=1><br></td></tr></tbody></table></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>

</body>

<a href= "http://www.alixixi.com/Dev/HTML/jsrun/" > Welcome to Arisisi Web Effects set </a>

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.