两个框架,一个动作,更新两个,如何? [英] Two Frames, one action, update both, How??

查看:100
本文介绍了两个框架,一个动作,更新两个,如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的网站有两个框架,一个带有菜单系统,一个带有

选择的结果。

我可以选择一个菜单项并获取另一个框架以反映

选择。


但是我想从菜单中选择退出并删除菜单系统

以及将默认欢迎页面放到第2帧。


任何想法都会感激不尽


PHP和HTML新手

史蒂夫

Hi All,
My site has two frames, one with a menu system, one with the
selected results.
I can select a menu item and get the other frame to reflect that
selection.

But I want to select ''log out'' from the menu and remove the menu sytem
as well as putting a default welcome page in to 2nd frame.

Any ideas will be gratefully received

New to PHP, and HTML

Steve

推荐答案

steve写道:
steve wrote:

大家好,

我的网站有两个框架,一个带有菜单系统,一个带有

选择结果。

我可以选择一个菜单项并获得另一个框架以反映

选择。


但是我想从菜单中选择退出并删除菜单系统

以及将默认欢迎页面放入第2帧。


我们将非常感激任何想法


PHP和HTML新手


Steve
Hi All,
My site has two frames, one with a menu system, one with the
selected results.
I can select a menu item and get the other frame to reflect that
selection.

But I want to select ''log out'' from the menu and remove the menu sytem
as well as putting a default welcome page in to 2nd frame.

Any ideas will be gratefully received

New to PHP, and HTML

Steve



嗨STeve,


您可能也是JavaScript新手。 :-)

你需要Javascript一次更新更多帧。

禁止访问JavaScript的访客将无法使用

你的网站。

你可能会考虑没有框架的设置。


如果你想用JavaScript解决它,试试这样的事情:

[更多问题试试cop.lang.javascript]


framedefinition:

2帧,命名它们,例如navframe和和大型机

navframe包含一个名为nav.php的文件

大型机包含任何文件。


如果有人点击nav.php中的注销:

< a href ="" onClick =" doLogOut(); return false;"> logout< / a>


< script type =" text / javascript">

函数doLogOut(){

//替换一帧中的两个页面:

top.frames [" mainframe"]。location =" welcome.php" ;;

top.frames [" navframe"]。location =" whatever.php";

}

< / script> ;


未经测试,可能包含错别字。 ;-)

祝你好运。


问候,

Erwin Moller

Hi STeve,

You are probably new to JavaScript then also. :-)
You need Javascript to update more frames at once.
That eans that visitors with JavaScript disabled will not be able to use
your site.
You might consider a setup without frames.

If you want to solve it with JavaScript, try something like this:
[for more question try cop.lang.javascript]

The framedefinition:
2 frames, name them, eg "navframe" and "mainframe"
navframe contains a file named nav.php
mainframe contains any file.

If somebody clicks on ''logout'' in nav.php:
<a href="" onClick="doLogOut();return false;">logout</a>

<script type="text/javascript">
function doLogOut(){
// replace two pages in a frame:
top.frames["mainframe"].location="welcome.php";
top.frames["navframe"].location="whatever.php";
}
</script>

not tested, might contain typos. ;-)
Good luck.

Regards,
Erwin Moller


[typocorrections:]


你好Steve,


那些* m *表示禁用JavaScript的访客将无法使用

你的网站。


如果你想用JavaScript解决它,试试这样的事情:

[更多问题试试co * m * p.lang.javascript]


问候,

Erwin Moller
[typocorrections:]

Hi Steve,

That *m*eans that visitors with JavaScript disabled will not be able to use
your site.

If you want to solve it with JavaScript, try something like this:
[for more question try co*m*p.lang.javascript]

Regards,
Erwin Moller


消息-ID:< 11 ********************* @ i42g2000cwa.googlegroups。 comfrom

steve包含以下内容:
Message-ID: <11*********************@i42g2000cwa.googlegroups. comfrom
steve contained the following:

>但我想从菜单中选择退出并删除菜单系统
以及将默认欢迎页面放入第2帧。

任何想法都会感激不尽。
>But I want to select ''log out'' from the menu and remove the menu sytem
as well as putting a default welcome page in to 2nd frame.

Any ideas will be gratefully received



只需链接一个新的框架集。


-

Geoff Berrow(把这个猫放到电子邮件中)

这是唯一的Usenet没有人死。

我的意见,而不是我的委员会。

简单的RFD http://www.ckdog.co.uk/rfdmaker/


这篇关于两个框架,一个动作,更新两个,如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆