首页 > 开发 > JS > 正文

类似框架的js代码

2024-09-06 12:44:33
字体:
来源:转载
供稿:网友
代码如下:
<html>
<head>
<title>类似框架的JS导航菜单</title>
<meta http-equiv=content-Type content="text/html;charset=gb2312">
<!--把下面代码加到<head>与</head>之间-->
<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>
<!--把下面代码加到<body>与</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">
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表