如何用一个超连接同时更新两个框架的内容?请教各位高手!(50分)

  • 主题发起人 liaomingwu
  • 开始时间
L

liaomingwu

Unregistered / Unconfirmed
GUEST, unregistred user!
窗口有三个框架窗口,我想在一个窗口中放一个超连接,当点击这个超连接时,其他的两个
框架窗口的内容能够同时更新,该如何做?
 
window.document.fm.action=url;
window.document.fm.target="mainFrame";
window.document.fm.submit();
 
你可以供post方法,在超级连接后面,戴上参数,读取不同的参数后,在显示
 
写一个JavaScript的函数,
function SetUrl(url)
{
a.window.location.replace(url);
b.window.location.replace(url);
}
 
to beast:
请问其中的a,b是什么?
另外,框架文件和页面文件都是分开的。
 
a,b是你的框架页的名字
框架页面也是有Name的,看看你的框架页面的的Html代码。
如果要在3个Frame的一个访问其他的就写window.parent.a
就ok了~~~
 
框架文件mainframe.asp,定义为
<frameset name = frameset1 id=frameset1>
<frame id = title src = "AppTitle.asp" target = "body">
<frameset name = frameset2 id=frameset2 >
<frame id = sidebar name = sidebar src = "Sidebar.asp" target = "body">
<frame id = body name = body src = "Body.asp" target = "body">
</frameset>
</frameset>
超连接在文件AppTitle.asp中,通过AppTitle.asp的超连接来同时更新框架sidebar和body
 
to beast:
多谢你的帮助,因为以前不懂javascript,所以没能试用你提供的方法,
最近看了一下javascript的书,问题已经解决了.
多谢!!!
 
顶部