当前a页面的frame id是designform,它的src="../../fceform/design",如何访问design.htm的frameset框架中的id=topic的frame。
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>a页面</TITLE> </head>
<body onresize="window_onresize()">
<div id=oTitle style="position:absolute;top:0px;left:0px;height:30px;width:100%">
<iframe width=100% height=100% id="toolbar" name="toolbar" src="wizardtb.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize></iframe>
</div>
<div id=oBody style="position:absolute;left:0px;top:32px;height:793px;" >
<iframe width=100% height=100% id="mainform" name="mainform" src="../../fceform/common/null.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize></iframe>
</div>
<div style="position:absolute;display:none;" >
<frame id="designform" src="../../fceform/design/<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body onresize="window_onresize()">
<div id=oTitle style="position:absolute;top:0px;left:0px;height:30px;width:100%">
<iframe width=100% height=100% id="toolbar" name="toolbar" src="wizardtb.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize></iframe>
</div>
<div id=oBody style="position:absolute;left:0px;top:32px;height:793px;" >
<iframe width=100% height=100% id="mainform" name="mainform" src="../../fceform/common/null.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize></iframe>
</div>
<div style="position:absolute;display:none;" >
<frame id="designform" src="../../fceform/design/design.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize>
</div>
</body>
</html>" scrolling=auto frameborder=0 bordercolor=LightGrey noresize>
</div>
</body>
</html><HTML >
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>design页面</TITLE>
</HEAD>
<frameset rows=56,89%,0 frameborder=1 border=0 id=eformmain name=eformmain>
<frame id="menu" src="menutoolbar.htm" scrolling=no border=0 frameborder=1 resize >
<!-- <frame id="topic" name="rightmain" src="layout.htm" scrolling=auto border=0 frameborder=1 bordercolor=LightGrey marginwidth=1 noresize>
-->
<frameset id=main1 cols=0,100% resize frameborder="0" framespacing="2">
<frame id="objlist" src="objlist.htm" scrolling=no resize style="border-right: 1px #00a3e4 solid">
<frameset id=main2 rows="*,27" border=0 resize style="border-left: 1px #00a3e4 solid">
<frame id="topic" name="rightmain" src="layout.htm" scrolling=auto border=0 frameborder=0 bordercolor=LightGrey marginwidth=1 resize>
<frame id="selhtml" src="selhtml.htm" scrolling=no border=0 frameborder=0 resize >
</frameset> </frameset></frameset></HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>a页面</TITLE> </head>
<body onresize="window_onresize()">
<div id=oTitle style="position:absolute;top:0px;left:0px;height:30px;width:100%">
<iframe width=100% height=100% id="toolbar" name="toolbar" src="wizardtb.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize></iframe>
</div>
<div id=oBody style="position:absolute;left:0px;top:32px;height:793px;" >
<iframe width=100% height=100% id="mainform" name="mainform" src="../../fceform/common/null.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize></iframe>
</div>
<div style="position:absolute;display:none;" >
<frame id="designform" src="../../fceform/design/<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body onresize="window_onresize()">
<div id=oTitle style="position:absolute;top:0px;left:0px;height:30px;width:100%">
<iframe width=100% height=100% id="toolbar" name="toolbar" src="wizardtb.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize></iframe>
</div>
<div id=oBody style="position:absolute;left:0px;top:32px;height:793px;" >
<iframe width=100% height=100% id="mainform" name="mainform" src="../../fceform/common/null.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize></iframe>
</div>
<div style="position:absolute;display:none;" >
<frame id="designform" src="../../fceform/design/design.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize>
</div>
</body>
</html>" scrolling=auto frameborder=0 bordercolor=LightGrey noresize>
</div>
</body>
</html><HTML >
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>design页面</TITLE>
</HEAD>
<frameset rows=56,89%,0 frameborder=1 border=0 id=eformmain name=eformmain>
<frame id="menu" src="menutoolbar.htm" scrolling=no border=0 frameborder=1 resize >
<!-- <frame id="topic" name="rightmain" src="layout.htm" scrolling=auto border=0 frameborder=1 bordercolor=LightGrey marginwidth=1 noresize>
-->
<frameset id=main1 cols=0,100% resize frameborder="0" framespacing="2">
<frame id="objlist" src="objlist.htm" scrolling=no resize style="border-right: 1px #00a3e4 solid">
<frameset id=main2 rows="*,27" border=0 resize style="border-left: 1px #00a3e4 solid">
<frame id="topic" name="rightmain" src="layout.htm" scrolling=auto border=0 frameborder=0 bordercolor=LightGrey marginwidth=1 resize>
<frame id="selhtml" src="selhtml.htm" scrolling=no border=0 frameborder=0 resize >
</frameset> </frameset></frameset></HTML>
解决方案 »
- phonegap写安卓程序出现灵异事件
- 简体转繁体的功能,要求在utf-8/firefox下可用
- js文件能否像css那样@import进来?
- 我运用了或运算符,当我有输入了“学生学号”(name="num")的时候,为什么还会出现提示的呢?
- 标移过滑动门+点击左右两点图片滚动
- Javascript 页面跳转的奇怪问题
- 图片连接,当鼠标滑过时变成另一张图片,怎么实现?谢谢。
- 如何用第二个窗口去刷新第一个窗口?
- 不小心按ESC键,表单里辛辛苦苦填的内容全没了,怎样才能使ESC清空的功能失效?
- WebStorm怎么用呀,谁有教程
- mediaPlayer的WPL格式列表动态播放问题!!
- 鼠标经过自动点击,这样的代码怎么写?谢谢!!
一个是包涵designform 的页面
<div style="position:absolute;display:none;" >
<frame id="designform" src="../../fceform/design/design.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize>
</div>
一个是
design.htm 的内容页面吧
这里包涵frameset。
获取直接可以用document.getElementById("topic").document.getElementById("ttt")(取对象)或者.test()(topic里js方法);
这个应该是可以的。
<div style="position:absolute;display:none;" >
<frame id="designform" src="../../fceform/design/design.htm" scrolling=auto frameborder=0 bordercolor=LightGrey noresize>
</div>
a页面如何获取自己页面中frame中的design.htm页面中的id是topic的frame对象,design.htm的代码如下:<frameset rows=56,89%,0 frameborder=1 border=0 id=eformmain name=eformmain>
<frame id="menu" src="menutoolbar.htm" scrolling=no border=0 frameborder=1 resize >
<!-- <frame id="topic" name="rightmain" src="layout.htm" scrolling=auto border=0 frameborder=1 bordercolor=LightGrey marginwidth=1 noresize>
-->
<frameset id=main1 cols=0,100% resize frameborder="0" framespacing="2">
<frame id="objlist" src="objlist.htm" scrolling=no resize style="border-right: 1px #00a3e4 solid">
<frameset id=main2 rows="*,27" border=0 resize style="border-left: 1px #00a3e4 solid">
<frame id="topic" name="rightmain" src="layout.htm" scrolling=auto border=0 frameborder=0 bordercolor=LightGrey marginwidth=1 resize>
<frame id="selhtml" src="selhtml.htm" scrolling=no border=0 frameborder=0 resize >
</frameset></frameset></frameset>