Re: Desperately need an image to disappear when page is fully loaded
- From: Good Man <heyho@xxxxxxxxxx>
- Date: Thu, 04 Oct 2007 15:56:41 -0500
edfialk <edfialk@xxxxxxxxx> wrote in
news:1191529675.617484.5500@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
uh, perhaps...
getElementById("loading").style.display="none"
... should go at the end of the function that sets up your maps and
fetches default values, etc etc rather than a seperate "onload"
function.
the page is doing what it should; after the document loads, the image
disappears. if you want the image to disappear after your *data* is
loaded, put the 'disappear' command at the end of the data-loading
function.
I've tried putting loading.style.display="none" at the end of the
function that fetches maps, etc. It still gets executed after values
are set, after images START to download, but long before they're
finished.
well you won't really be able to control that AFAIK. i mean, you can
possibly put your images into an array, then have an OnLoad function
iterate through the array to make sure the images are all present on the
page, and if so, issue the style-changing command (previously called the
disappear command by me)... otherwise, timeout a couple seconds and run
the function again
I'm completely unfamiliar with this 'disappear' command, and can't
seem to find much on it my first search through. Could you explain
how to use that for me?
i was just calling...
getElementById("loading").style.display="none"
.... a "disappear" command, there isn't really a disappear command.
.
- References:
- Prev by Date: Re: I would like to create a vertical cascading menu using javascript and css - looking for guidelines
- Next by Date: late variable value via ajax connection
- Previous by thread: Re: Desperately need an image to disappear when page is fully loaded
- Next by thread: Re: Desperately need an image to disappear when page is fully loaded
- Index(es):
Relevant Pages
|