能否实现如下效果:顶部是本页内的内容,下面是框架包含左右两个区域,点击左边区域内网页的链接,链接后的网页直接显示在右边框架内?
解决方案 »
- 如何访问网络空间所有tomcat服务器下的xml文件
- owc 的 excel 可以有多个 sheet 吗
- jsp怎样实现图片轮换显示?
- 求助连接SQLServer2000
- 如何调用win32的dll,例如USER32.dll,为何我的不行呢?
- hibernate: 一对多的查询问题
- 大家来看看,一个令人匪夷所思的问题,难道是我的虚拟机有问题吗?
- 关于Tomcat服务器自动结束的问题
- jad怎么用?详细一点.谢谢!非常感谢!jad怎么用?详细一点.谢谢!非常感谢!
- Spring JDBC一直抛出java.sql.SQLException异常
- 请教改条语句的拼接方法
- testjpa.book.WebBookstoreBooks cannot be cast to testjpa.book.WebBookstoreBooks
<%@page contentType="text/html;charset=gb2312"%>
<%@include file="top.jsp"%>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="212" valign="top"><%@include file="left_i.jsp"%></td>
<td width="768" valign="top">
<iframe width=768 height=624 name=mainframe frameborder=0 align="top" src="main.jsp"></iframe>
</td>
</tr>
</table>
<%@include file="foot.jsp"%>
<frame src="/second.html" id="second" name="second" noresize></frameset>
<frame src="top.jsp" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" title="topFrame">
<frameset rows="*" cols="250,*" framespacing="0" frameborder="yes" border="2">
<frame src="left.jsp" name="leftFrame" scrolling="no" noresize="noresize" id="leftFrame" title="leftFrame"/>
<frame src="right.jsp" name="mainFrame" id="mainFrame" title="mainFrame"/>
</frameset>
</frameset>left.jsp的连接上 给个属性target="mainFrame"
<form target="list">...</form>form的target属性对应frame的name属性,这样就提交到frame中了或者用js
<script>window.list.location.href="xx.html"</script>
这样就在frame中打开xx.html了
<frame name="top" scrolling="no" noresize target="contents" src="top.jsp" marginwidth="0" marginheight="0">
<frameset cols="182,*">
<frame name="contents" target="main" src="left.jsp" scrolling="no">
<frame name="main" src="main.jsp">
</frameset>
<frame name="bottom" scrolling="no" noresize target="contents" src="bottom.jsp">
<noframes>
<body>
<p>此网页使用了框架。</p>
</body>
</noframes>
</frameset>