Re: Desperately need an image to disappear when page is fully loaded



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/
.



Relevant Pages

  • Re: Attention David F
    ... I do have a 56k modem, but because of the distance from the switching ... Both of your home pages load relatively quickly for me, ... more images you have the longer it takes for a page to load. ... comparison from a person that had built a 200+ page site in Publisher, ...
    (microsoft.public.publisher.webdesign)
  • Re: Rapid gfx display Qs
    ... I think with Autoredraw False you are effectively timing the total time both of loading the picture from disk into memory and also the time taken for the OS to dump that picture to the screen. ... In contrast, with Autoredraw True, you are timing only the time taken to load the picture from disk into memory because the VB Autoredraw system itself will dump the property to the actual display just after your code has finished. ... I get a time of about 79 msecs just to load the picture into a StdPicture object, even though the file size of the jpg is very much smaller, only about one tenth of the file size of the equivalent bmp. ... Much of course depends on the nature of your images, and it is hard to comment any further really without knowing what sort of images they are. ...
    (microsoft.public.vb.general.discussion)
  • Re: CONCERNED About the Publisher 2007 index file size
    ... While you will find some expert web designers, ... Publisher effectively takes a print document and ... approximately 23 seconds to load fully. ... so people will have something to read while the images load. ...
    (microsoft.public.publisher.webdesign)
  • Re: Attention David F
    ... resampling and resizing images to 96 dpi in Publisher. ... I'm glad my pages load decently. ... Web Plus does seem to offer a lot of features that you ...
    (microsoft.public.publisher.webdesign)
  • Re: Website review sought - comments invited
    ... jewellery and for ease of access it is now available through ... The thumbnails load first and you get to see them. ... While you are looking at the thumbnails, the bigger images are ...
    (rec.crafts.jewelry)