用脚本表示Frame太烦了,我头都要大了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

mfm80629 2002-01-11 11:09:32
------------------我先在main.htm中定义-------------------------
<frameset rows="15%,85%" frameborder="YES" border="0" framespacing="1">
<frameset cols="*,150" frameborder="NO" border="0" framespacing="1">
<frameset cols="90,*" frameborder="NO" border="0" framespacing="0">

<frame name="topFrame_left" scrolling="NO" noresize src="login_up_left.htm" >

<frame name="topFrame" scrolling="NO" noresize src="login_up.htm" >
</frameset>

<frame name="topFrame_right" scrolling="NO" noresize src="login_up_right.htm" >
</frameset>

<frame name="mainFrame" scrolling="YES" noresize src="login_down.htm">
</frameset>


------------------再在login_down.htm中定义-------------------------
<frameset cols="25%,*" frameborder="YES" border="0" framespacing="0">
<frame name="mainLeftFrame" scrolling="NO" noresize src="zouKiZu_Left.htm">
<frame name="mainRightFrame" src="zouKiZu_right_wei.htm">
</frameset>


现在我要在zouKiZu_Left.htm页面中用脚本把mainRightFrame.htm的页面指向pass.htm
这样写不对吗?parent.mainRightFrame.location.href ="pass.htm"
头大!头大!头大!头大!头大!头大!头大!头大!头大!头大!头大!



...全文
150 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
mfm80629 2002-01-18
  • 打赏
  • 举报
回复
又好了,咳!
孟子E章 2002-01-15
  • 打赏
  • 举报
回复
你也真是的,嵌套那么多干吗呢!!
mfm80629 2002-01-15
  • 打赏
  • 举报
回复
这破玩意怎么有时对,有时不对的,破破破破破破破破破破破破破破破破破破破破破
ycjnx 2002-01-15
  • 打赏
  • 举报
回复
我试了一下,你的写法没错。要不然就是我理解错了:)
ycjnx 2002-01-15
  • 打赏
  • 举报
回复
****test.asp
<frameset cols="25%,*" frameborder="YES" border="0" framespacing="0">
<frame name="mainLeftFrame" scrolling="NO" noresize src="Left.asp">
<frame name="mainRightFrame" src="right.asp">
</frameset>

***left.asp
<script language=javascript>
function link()
{
parent.mainRightFrame.location.href ="third.asp"
}
</script>
<input type="button" onclick="link()" value="linkright">

****right.asp
right

****third.asp
third
blues-star 2002-01-11
  • 打赏
  • 举报
回复
try top.topFrame_tight.location

parent是父框架,top是顶层框架,也就是跟
mfm80629 2002-01-11
  • 打赏
  • 举报
回复
我有些不明白啊!我在login_down.htm中用脚本把topFrame_right.htm的页面指向pass.htm
parent.topFrame_right.location.href ="pass.htm"对的呀!照例mainRightFrame.htm就不对了!!!!!!!!!!!!!!!????????????????????
ohno 2002-01-11
  • 打赏
  • 举报
回复
oh 碰到我就弧度啊
孟子E章 2002-01-11
  • 打赏
  • 举报
回复
搞好父子关系
孟子E章 2002-01-11
  • 打赏
  • 举报
回复
仔细算算!
.......parent.WinName.location
mfm80629 2002-01-11
  • 打赏
  • 举报
回复
要做的事很简单,就是上面我所说的用脚本把mainRightFrame.htm的页面指向pass.htm
vincentmax 2002-01-11
  • 打赏
  • 举报
回复
你干吗呢?
mfm80629 2002-01-11
  • 打赏
  • 举报
回复
稻草人:parent.topFrame_right.location.href ="pass.htm" 是正确的


我要解决的是parent.mainRightFrame.location.href ="pass.htm"不正确

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧