Re: Desperately need an image to disappear when page is fully loaded
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Fri, 05 Oct 2007 19:02:24 -0400
edfialk said the following on 10/5/2007 11:57 AM:
I looked for loading animation, loading image, image disappear onload,
and a bit more, unable to find the answer to my question. I didn't
post blind without searching. If you are better at searching than I
am, I'm sorry, but you could have just posted a link to the post.
The thread was posted, among other times, on Sep 28 and is entitled "can u help with my preloader code" and you get the benefit of the doubt because the OP in that thread is a moron that posted the same question 3 different times. The question is the same though "How do I make a preloading message disappear after the page loads?" and the thread is here:
<URL: http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/ac6e6585b49b8987/76e14a77ef86dc04?lnk=gst&q=image+onload+randy+webb&rnum=1#76e14a77ef86dc04>
I have made the suggestion, the last time this was asked, to simply
place an img element in the page itself for each image and then the
body/window.onload doesn't fire until they were loaded. It either got
ignored or people simply can't do research to find out how to do something.
there's about a million possible images that can be loaded. Every
single hour has 2 parameters for about 10 datasets for an entire
year. It's impossible for me to load the images. Whether I saw your
post previously or not, it doesn't help me at all. I did the
research, like I said i saw a few examples but none of them work for
me. Obviously, that part must have been ignored.
You can attach an onload event to images that will get triggered. It is buggy - at best - though.
I guess I should have said these previously, but there's no way I can
preload images, there's just too many. All I would need is a way to
see if data is still being transferred, but like said previously, I
guess I don't have that control.
Unfortunately, you don't have a way to know that other than onloads and that isn't reliable for what you are doing.
A possibility is to load the images in an IFrame and use the IFrame's onload event to know when they are finished loading.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.
- References:
- Desperately need an image to disappear when page is fully loaded
- From: edfialk
- Re: Desperately need an image to disappear when page is fully loaded
- From: james . ducker
- Re: Desperately need an image to disappear when page is fully loaded
- From: edfialk
- Desperately need an image to disappear when page is fully loaded
- Prev by Date: FAQ Topic - What books cover javascript?
- Next by Date: Re: When is a function not a function?
- Previous by thread: Re: Desperately need an image to disappear when page is fully loaded
- Next by thread: late variable value via ajax connection
- Index(es):
Relevant Pages
|