知道图形何时加载 [英] Knowing when graphics have loaded

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

问题描述



我有一个应用程序,用户从另一个站点加载图形。

目前我建议用户等待图形加载之前

点击调整。理想情况下,我更喜欢闭环方法

,其中代码可以识别加载完成并自动启用调整。关于我如何利用我的浏览器

知道的任何想法都将受到赞赏。


I have an application where the user loads graphics from another site.
Presently I advise the user to wait for graphics to load before
clicking on adjustments. Ideally, I would prefer a closed-loop approach
where code would recognize completion of loading and automatically
enable the adjustments. Any ideas on how I can tap into what my browser
knows would be appreciated.

推荐答案

< a href =mailto:a1 ***** @ aol.com> a1 ***** @ aol.com 写道:
a1*****@aol.com wrote:
我有一个申请表用户从其他站点加载图形的位置。
目前我建议用户在点击调整之前等待图形加载。理想情况下,我更喜欢闭环方法
代码可以识别加载完成并自动启用调整。


不,你不会。

关于如何利用我的浏览器知道的任何想法都会受到赞赏。
I have an application where the user loads graphics from another site.
Presently I advise the user to wait for graphics to load before
clicking on adjustments. Ideally, I would prefer a closed-loop approach
where code would recognize completion of loading and automatically
enable the adjustments.
No, you would not.
Any ideas on how I can tap into what my browser knows would be
appreciated.




我假设我们在讨论HTML 4.01 / XHTML 1.0:


使用`img''的'onload''事件处理程序元素(对象)。由于

它是非标准的,你必须将它分配给元素当

'body'元素的'load''事件触发时(因此使用) 'onload''

事件处理程序)。

PointedEars



I assume we are talking about HTML 4.01/XHTML 1.0:

Use the `onload'' event handler of the `img'' element (object). Since
it is non-standard, you will have to assign it to the element when
the `load'' event of the `body'' element fires (hence use the `onload''
event handlers).
PointedEars


因为body标签中的onload事件是据说当

图像完成加载时,无法调整控件

禁用,直到onload函数启用它们?

Since the onload event in the body tag is supposedly called when the
images are done loading, couldn''t the controls for adjustments be
disabled until the onload function enables them?




Thomas''PointedEars''Lahn写道:

Thomas ''PointedEars'' Lahn wrote:
a1 ***** @ aol.com 写道:
a1*****@aol.com wrote:
我有一个应用程序,用户从另一个站点加载图形。
现在我建议用户在点击调整之前等待图形加载。理想情况下,我更喜欢闭环方法
代码可以识别加载完成并自动启用调整。
I have an application where the user loads graphics from another site.
Presently I advise the user to wait for graphics to load before
clicking on adjustments. Ideally, I would prefer a closed-loop approach
where code would recognize completion of loading and automatically
enable the adjustments.



不,你不会。



No, you would not.

关于如何利用我的浏览器知道的任何想法将受到赞赏。
Any ideas on how I can tap into what my browser knows would be
appreciated.



我假设我们正在讨论HTML 4.01 / XHTML 1.0:

使用`img''元素(对象)的`onload''事件处理程序。因为它是非标准的,所以当`body''元素的'load''事件触发时,你必须将它分配给元素(因此使用`onload''
事件处理程序)。

PointedEars



I assume we are talking about HTML 4.01/XHTML 1.0:

Use the `onload'' event handler of the `img'' element (object). Since
it is non-standard, you will have to assign it to the element when
the `load'' event of the `body'' element fires (hence use the `onload''
event handlers).
PointedEars




我发现onload =somefunction img

标签内的语句不会触发并假设这是你所说的'onload''

事件处理程序是非标准的?如果是,那么如何为特定元素分配一个

处理程序?


Herbert



I have found that a onload = "somefunction" statement within the img
tag does not fire and assume this is what you mean by the ''onload''
event handler being non- standard? If so then how does one assign a
handler to a specific element?

Herbert

这篇关于知道图形何时加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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