[英] frames

查看:109
本文介绍了帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我的网站使用框架,一个应该总是加载框架集而不是

只有一个框架。有没有一种很好的方法可以确保/检查一个页面是否在一个框架内装满了



谢谢,


David

Hi,

My website uses frames and one should always load the frameset and not
only one of the frames. Is there a nice way to ensure/check that a page is
actualy loaded within a frameset?

thanks,

David

推荐答案

David de Kloet写道:
David de Kloet wrote:


我的网站使用框架,一个应始终加载框架集,而不是只有一个框架。有没有一种很好的方法可以确保/检查
页面是否在框架集中实际加载?
Hi,

My website uses frames and one should always load the frameset and not
only one of the frames. Is there a nice way to ensure/check that a
page is actualy loaded within a frameset?




好​​吧,如果你必须使用框架...


将以下内容放在页面的头部将意味着,如果在没有框架集的情况下加载框架的事件是

,页面将默认为

index.html。虽然这并没有给访问者提供他们期待的框架页面,但它确实为他们提供了一个带有菜单的完整框架集,这样他们至少可以导航到
该网站。


< script language =" javascript">

if(document.location == top.location)

{

document.location =" index.html" ;;

}

< / script>


我还会建议有很多方法可以摆脱框架 -

"我想在每个页面上都有相同的菜单而不重复它这是我经常听到的好处,而且很容易解决,包括:
http://www.bignosebird.com/sdocs/include.shtml


HTH

-

PeterMcC

如果您认为上述任何一项不正确,

不合适或以任何方式冒犯,
请忽略它并接受我的道歉。



Well, if you must use frames...

Putting the following in the head of your pages will mean that, in the event
of a frame being loaded without the frameset, the page will default to
index.html. Whilst this doesn''t give the visitor the framed page that they
were expecting, it does give them a complete frameset with a menu so that
they can at least navigate the site.

<script language="javascript">
if (document.location == top.location)
{
document.location="index.html";
}
</script>

I''d also suggest that there are lots of ways of getting rid of frames - the
"I want to have the same menu on every page without repeating it" is the
benefit that I hear most often and that''s easily solved with includes:
http://www.bignosebird.com/sdocs/include.shtml

HTH
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.


2003年7月8日星期二,PeterMcC写道:
On Tue, 8 Jul 2003, PeterMcC wrote:
好吧,如果你必须使用框架...


我知道你的意思。

< script language =" javascript"> ;
if(document.location == top.location)
{
document.location =" index.html" ;;
}
< / script>


谢谢,正是我所寻找的。

我也会建议有很多方法可以摆脱框架 -
我想在每个页面上都有相同的菜单而不重复它是我经常听到的好处,并且很容易解决,包括:
http://www.bignosebird.com/sdocs/include.shtml
Well, if you must use frames...
I know what you mean.
<script language="javascript">
if (document.location == top.location)
{
document.location="index.html";
}
</script>
Thanks, just what I was looking for.
I''d also suggest that there are lots of ways of getting rid of frames - the
"I want to have the same menu on every page without repeating it" is the
benefit that I hear most often and that''s easily solved with includes:
http://www.bignosebird.com/sdocs/include.shtml




我知道你了应该重新考虑你想要的那一刻,但是

我认为镜架在我的网站上是一种紫色,所以我会保留我的画面。

David



I''m aware that you should reconsider the moment you want to you frames but
I think frames serve a purpous on my site so I''ll just keep my frames.
David


On Tue,08 Jul 2003 11:52:50 +0200,David de Kloet写道:
On Tue, 08 Jul 2003 11:52:50 +0200, David de Kloet wrote:


谢谢,

David
Hi,

My website uses frames and one should always load the frameset and not
only one of the frames. Is there a nice way to ensure/check that a page is
actualy loaded within a frameset?

thanks,

David




是的。永远,*永远*,使用框架。


问题解决了。

-

Jeffrey D. Silverman | jeffrey AT jhu DOT edu

约翰霍普金斯大学|马里兰州巴尔的摩

网站| http://www.wse.jhu.edu/newtnotes/



Yes. Never, *ever*, use frames.

problem solved.
--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/


这篇关于帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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