winrar 64位 烈火版:关于网页中的层

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/14 18:33:59
我想实现一个功能:
就是在左边点击相应的栏目,右边出现相应的内容.不刷新页面.可以吧,怎么实现啊,请教!!

我以前的程序:
左边的栏目:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/left.css" rel="stylesheet" type="text/css">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {color: #333333}
-->
</style>
</head>

<body>
<table width="100%" height="113" border="0">
<tr>
<td height="22" background="../images/tdbg.jpg"><div id="link2"><a href="enterprise/enterprise_list.jsp" target="mainFrame">企业基本信息管理</a></div></td>
</tr>

<tr>
<td height="22" background="../images/tdbg.jpg"><div id="link2"><a href="expert/expert_list.jsp" target="mainFrame">专家基本信息管理</a></div></td>
</tr>

<tr>
<td height="22" background="../images/tdbg.jpg"><div id="link2"><a href="conference/conference_list.jsp" target="mainFrame" class="style1">评审会组织与管理</a></div></td>
</tr>
</table>
<span class="style1"></span>
</body>
</html>
其中主要是在链接中的target要设置为“mainFrame”,那么主窗口就会变换成链接的页面,而左边不变。如果要使整个页面变化只需将target值改为“_parent”就可以了。