Hi, I am wondering if there is a way to use javascript to swap an image on the page for another one as soon as the page is done loading. Any help and code examples would be much appreciated!
Thanks, Ka
Hi, I am wondering if there is a way to use javascript to swap an image on the page for another one as soon as the page is done loading. Any help and code examples would be much appreciated!
Thanks, Ka
Why?
If the page is loading, then the user may not be able to see the image. So if the image changes as soon as the page loads, the user may not see the change.![]()
once again, look at quirksmode.org at the compatibility tables. setTimer is what you are looking for, but like AmenKa already alluded to, there isn't a reliable way to ensure that any sort of loading happens in the proper order without using javascript to load all of the elements on the page when you want them to.
I have managed to achieve the same effect using js to control the pages load
Last edited by AmenKa; 03-16-2008 at 12:30 AM.
Bookmarks