主页面mainIndex.htm:
<FRAMESET border=0 name=apptop frameSpacing=0 rows=50,24,*,22 frameBorder=0>
<FRAME name=topFrame src="index.files/top.htm" noResize scrolling=no>
<FRAME name=midFrame src="index.files/mid.htm" noResize scrolling=no target="main"> <FRAMESET border=0 name=content frameSpacing=0 frameBorder=0 cols=140,*>
<FRAME name=menu src="index.files/menu.htm"
frameBorder=no scrolling=no target="main">
<FRAME name=main src="index.files/index.htm"
frameBorder=no scrolling=yes target="_self">
</FRAMESET>
<FRAME name=bottom src="index.files/version.htm" noResize scrolling=no></FRAMESET>A:在子框架menu.htm中:
<TR>
<TD style="PADDING-LEFT: 20px" bgColor=#b9dcf3 height=21>- <A id=m0
onclick="top.main.location.replace('URL');current_menu(2)" //这里的URL到底是何意?location.replace()??? href="http://localhost:8080/BOM/index.files/new.htm" >点击链接</A></TD></TR>
//此链接的页面new.htm是要取代下面框架的页面index.htm
B:子框架index.htm中:
<TR>
<TD align=middle></TD>
<TD align=middle><FONT face="Courier New">
旧页面</A></FONT>
<TD align=middle></TD>
</TR>
<FRAMESET border=0 name=apptop frameSpacing=0 rows=50,24,*,22 frameBorder=0>
<FRAME name=topFrame src="index.files/top.htm" noResize scrolling=no>
<FRAME name=midFrame src="index.files/mid.htm" noResize scrolling=no target="main"> <FRAMESET border=0 name=content frameSpacing=0 frameBorder=0 cols=140,*>
<FRAME name=menu src="index.files/menu.htm"
frameBorder=no scrolling=no target="main">
<FRAME name=main src="index.files/index.htm"
frameBorder=no scrolling=yes target="_self">
</FRAMESET>
<FRAME name=bottom src="index.files/version.htm" noResize scrolling=no></FRAMESET>A:在子框架menu.htm中:
<TR>
<TD style="PADDING-LEFT: 20px" bgColor=#b9dcf3 height=21>- <A id=m0
onclick="top.main.location.replace('URL');current_menu(2)" //这里的URL到底是何意?location.replace()??? href="http://localhost:8080/BOM/index.files/new.htm" >点击链接</A></TD></TR>
//此链接的页面new.htm是要取代下面框架的页面index.htm
B:子框架index.htm中:
<TR>
<TD align=middle></TD>
<TD align=middle><FONT face="Courier New">
旧页面</A></FONT>
<TD align=middle></TD>
</TR>
解决方案 »
- java.lang.OutOfMemoryError: Java heap space 根源在哪里?
- 如何将页面元素content里面的内容保存为文件
- 请教一下JS里面的正则表达式具体要怎么用
- 我的access只能select不能插入了?
- 有没有java socket高手?? 求帮助啊!
- 数组存值!!!!在线等!!
- 学Java需要哪些编程基础?
- ps.executeQuery();与st.executeQuery();的问题
- 可不可以的jsp里面用microsoft.xmlhttp向服务器传递数据?
- j2sdk是不是不带有servlet包
- 判断为空的问题
- 用 jstl 做一段跌代 后出现这样的错误! 不知道为什么??
main就是FRAME name=main
replace是替换指定window的地址
main是某框架中的一个帧(即某个frame的名字),
location为是什么要放到这里边,(可能为jsp.html文件等),
replace为把前面的js对象替换掉(这里替换的是top.main.location).
纠正-> top是最上层框架
parent是上一层,其他正确.^_^
多谢up楼主!
但将URL赋为:index.htm后,虽然B框架显示了链接的内容,可A框架也显示了