function Open_Ref() {
X = (screen.width - 900) / 2;
Y = (screen.height - 700) / 2;
settings = 'resizable=yes,scrollbars=yes,height=700,width=900,top=' + Y + ',left=' + X;
theURL = '../dir/foo.htm#' + parent.MAIN.frame_id;
Ref_Window = window.open(theURL, 'Ref', settings);
Ref_Window.focus();
Ref_Window.moveTo(X, Y);
}
function Refresh_Ref() {
theURL = '../dir/foo.htm#' + parent.MAIN.frame_id;
if (Ref_Window != null) {
Ref_Window.updateRef(parent.MAIN.frame_id);
}
这将打开参考窗口,在该参考中,它包含用于从父帧更新帧参考的代码;
function updateRef(frame){
window.location.hash=frame;
}
setTimeout("Refresh_Ref()",1000);
这一切都是正确的,作为父对象的框架。主菜单被导航,子菜单更新到适当的框架。我的问题是,我有多个“个性化”引用,从引用窗口链接(基本上是原始引用子对象的副本),我们称它们为foo1。htm,foo2。htm等,当访问它们时,它们将失去更新到父框架的能力,即使您导航回foo。htm文件。
我意识到原来的Open\u Ref()函数只调用这一个文件,然而,我尝试在中添加多个函数,但它似乎不起作用。
任何想法,都可以使用布尔语句来检查哪个foo。htm文件在运行函数之前是否打开?