Js Code similar to the Framework

Source: Internet
Author: User

Copy codeThe Code is as follows: <Head>
<Title> JS navigation menu similar to the Framework </title>
<Meta http-equiv = content-Type content = "text/html; charset = gb2312">
<! -- Add the following code between <SCRIPT language = JavaScript>
Function secBoard (n)
{
For (I = 1; I <6; I ++)
{
Eval ("document. getElementById ('cel" + I + "'). background = ''");
}
Eval ("document. getElementById ('cel" + n + "'). background = ''");
For (I = 1; I <6; I ++)
Eval ("tbx0" + I + ". style. display = 'none '");
Eval ("tbx0" + n + ". style. display = 'block '");
}

</SCRIPT>
</Head>
<Body>
<! -- Add the following code to the <body> and </body> -->
<Div align = "center">
<Table border = "0" width = "600" cellpadding = "0" style = "border-collapse: collapse" id = "table1">
<Tr>
<Td width = "93" height = "125" align = "center" valign = "top">
<Table border = "0" width = "100%" cellpadding = "2" id = "table28">
<Tr>
<Td valign = "top">
<Div align = "center">
<Table border = "1" width = "100%" cellspacing = "0" cellpadding = "0" style = "border-collapse: collapse "bordercolor =" # FF0000 "id =" table29 ">
<Tr>
<Td id = cel1 onclick = secBoard (1) style = "cursor: hand" height = "25" align = "center"> link 1 </td>
</Tr>
<Tr>
<Td id = cel2 onclick = secBoard (2) style = "cursor: hand" height = "25" align = "center"> link 2 </td>
</Tr>
<Tr>
<Td id = cel3 onclick = secBoard (3) style = "cursor: hand" height = "25" align = "center"> link 3 </td>
</Tr>
<Tr>
<Td id = cel4 onclick = secBoard (4) style = "cursor: hand" height = "25" align = "center"> Link 4 </td>
</Tr>
<Tr>
<Td id = cel5 onclick = secBoard (5) style = "cursor: hand" height = "25" align = "center"> link 5 </td>
</Tr>
</Table>
</Div>
</Td>
</Tr>
</Table>
</Td>
<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>
<Td valign = "top"> <TABLE id = Table27 cellSpacing = 0 cellPadding = 0 width = 300
Border = 0>
<TBODY>
<TR>
<TD width = 1 bgColor = # a9a9a9 height = "1"> </TD>
<TD class = p2 width = 298 bgcolor = "# CCCCCC" height = "1"> </TD> </TR>
<TR>
<TD width = 1> <BR> </TD>
<TD class = p2 width = 298>
<TABLE id = tbx01 style = "DISPLAY: block"
CellSpacing = 5 cellPadding = 0 width = "100%"
Align = center border = 0>
<TBODY>
<TR>
<TD class = p2>
<P style = "line-width: 150%">
<Font color = "# FF0000"> <B> link 1: </B> </font> liquor cigarettes Lu cuisine northeast guanfu Hunan sucheo Shaanxi <BR> Hubei Huaiyang western food liquor cigarettes Lu cuisine Northeast guanfu Hunan suchei Shaanxi <BR> Hubei Huaiyang western food liquor cigarette Lu cuisine northeast guanfu Hunan suchei Shaanxi <BR> Hubei Huaiyang western food </TD> </TR> </TBODY> </TABLE>
<TABLE id = tbx02 style = "DISPLAY: none"
CellSpacing = 5 cellPadding = 0 width = "100%"
Align = center border = 0>
<TBODY>
<TR>
<TD class = p2>
<P style = "line-width: 150%">
<Font color = "# FF0000"> <B> link 2: </B> </font> Chongwenmen, West single, zhujiazhuang, Shiji Road, Renmin Road, guanqian Street
<Br>
Chongwenmen, Xidan, zhujiazhuang, shilu, fangzhuang, Suzhou Street
<Br>
Chongwenmen, Xidan, zhujiazhuang, shilu, fangzhuang, Suzhou Street
<Br>
Zhouzhou street fangzhuang guanqian street people's road Guangji road Shi road Zhu jiazhuang West single Chongwenmen
<Br>
Chongwenmen, Xidan, zhujiazhuang, shilu, fangzhuang, Suzhou Street
<Br>
Zhouzhou street fangzhuang Shi road zhujia guanqian street Renmin Road Guangji road Shi road Zhu jiazhuang West single Chongwenmen
<Br>
Chongwenmen, Xidan, zhujiazhuang, shilu, fangzhuang, Suzhou Street
<Br>
Zhu Jia, shilu, fangzhuang, Suzhou Street </TD> </TR> </TBODY> </TABLE>
<TABLE id = tbx03 style = "DISPLAY: none"
CellSpacing = 5 cellPadding = 0 width = "100%"
Align = center border = 0>
<TBODY>
<TR>
<TD class = p2>
<P style = "line-width: 150%">
<Font color = "# FF0000"> <B> link 3: </B> </font> boiled fish, roast duck, spicy crab, hot pot, goat, Scorpion, farmhouse food, barbecue snacks <BR>
Fish roast duck spicy crab hot pot goat scorpion farmhouse food barbecue fish roast duck spicy crab hot pot goat scorpion farmhouse food barbecue spicy crab
Roast fish roast duck spicy crab hot pot goat scorpion farmhouse food barbecue spicy crab hot pot goat scorpion
Farmhouse food barbecue fish roast duck spicy crab hot pot goat/scorpion farmhouse food barbecue </TD> </TR> </TBODY> </TABLE>
<TABLE id = tbx04 style = "DISPLAY: none"
CellSpacing = 5 cellPadding = 0 width = "100%"
Align = center border = 0>
<TBODY>
<TR>
<TD class = p2>
<P style = "line-width: 150%">
<Font color = "# FF0000"> <B> Link 4: </B> </font> boiled fish, roast duck, spicy crab, hot pot, goat, Scorpion, farmhouse food, barbecue snacks <BR>
Farmhouse food and barbecue snacks <BR> braised shark's fast food boiled fish roast duck
Spicy crab hot pot, goat, Scorpion, farmhouse food, barbecue snacks <BR>
Farmhouse food and barbecue snacks <BR> abalone-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>
<TD class = p2>
<P style = "line-width: 150%">
<Font color = "# FF0000"> <B> link 5: </B> </font> boiled fish, roast duck, spicy crab, hot pot, goat, Scorpion, farmhouse food, barbecue snacks <BR>
Fast food fast food boiled fish roast duck spicy crab
Hot Pot of yangzhe farmhouse food and barbecue snacks <BR>
Braised shark's fin fast food quick boiled fish roast duck spicy crab hot pot goat scorpion farmhouse food barbecue snacks <BR>
Abalone fast food </TD> </TR> </TBODY> </TABLE> </TD>
<TD width = 1> <BR> </TD> </TR> </TBODY> </TABLE> </td>
</Tr>
</Table>
</Div>
</Td>
</Tr>
</Table>
</Td>
</Tr>
</Table>
</Div>
</Body>
</Html>

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.