确定是否加载了图像文件 [英] determine whether the image file is loaded
问题描述
大家好
我无法跟踪我的图像文件是否已加载。
我使用DHTML来更改图像。这里是代码:
< img name =" someimage" src =" 1.jpg"
onclick =" document.all.someimage.src =''someimage.jpg">
但我怎样才能确定是否someimage.jpg加载?我可以获得一个文件的
下载百分比吗?
提前致谢
Donjuan <易******* @ hotmail.com>在留言中写道
新闻:bf *********** @ mail.cn99.com ...大家好我
我有跟踪我的图像文件是否已加载有问题。
我使用DHTML来更改图像。这里是代码:
< img name =" someimage" src =" 1.jpg"
onclick =" document.all.someimage.src =''someimage.jpg">
但我怎样才能确定是否someimage.jpg加载?我可以获得
文件的下载百分比吗?
提前致谢
在文章< 3f ******** @ funnel.arach.net.au>," Mosley Jones III"
< me @ info .gov.mars>写道:
http: //mosley.arach.net.au/test/loadImage.htm
我的Mozilla完全坏了。这可以解释为什么代码没有在这里发布
。
-
Randy
所有代码发布取决于查看浏览器
支持所调用的方法,并启用Javascript。
" HikksNotAtHome" <喜************ @ aol.com>在消息中写道
新闻:20 *************************** @ mb-m04.aol.com。 ..文章< 3f ******** @ funnel.arach.net.au>,Mosley Jones III
< me@info.gov .mars>写道:
http: //mosley.arach.net.au/test/loadImage.htm
在我的Mozilla中彻底破碎了。这可以解释为什么代码不是
张贴在这里。
-
我用的是DOM,看到它的样本,
您可以通过选择查看代码来查看代码
Randy
所有发布的代码都是依赖的在查看浏览器上支持所调用的方法,并启用Javascript。
Hi all
I have trouble with tracking whether my image file is loaded.
i use DHTML to change my image. HERE is the code:
<img name="someimage" src="1.jpg"
onclick="document.all.someimage.src=''someimage.jpg ">
but how can i determine whether "someimage.jpg" is loaded? and can i get the
download percent of a file?
Thanks in advance
"Donjuan" <yi*******@hotmail.com> wrote in message
news:bf***********@mail.cn99.com...Hi all
I have trouble with tracking whether my image file is loaded.
i use DHTML to change my image. HERE is the code:
<img name="someimage" src="1.jpg"
onclick="document.all.someimage.src=''someimage.jpg ">
but how can i determine whether "someimage.jpg" is loaded? and can i get the download percent of a file?
Thanks in advance
In article <3f********@funnel.arach.net.au>, "Mosley Jones III"
<me@info.gov.mars> writes:
http://mosley.arach.net.au/test/loadImage.htm
Utterly broken in my Mozilla. That would explain why the code wasn''t posted
here.
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.
"HikksNotAtHome" <hi************@aol.com> wrote in message
news:20***************************@mb-m04.aol.com...In article <3f********@funnel.arach.net.au>, "Mosley Jones III"
<me@info.gov.mars> writes:http://mosley.arach.net.au/test/loadImage.htm
Utterly broken in my Mozilla. That would explain why the code wasn''t
posted here.
--
I used ie DOM, seeing its a sample,
you can see the code by choosing view code
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.
这篇关于确定是否加载了图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!