well i posted about it some time ago, and i got 2 answers
1st answer: it says loading page until the page is really loaded which is what i wanted, but the problem here was that not the whole page was hidden. (u could scroll down with the mouse and see that the page content was not fully hidden)
2nd answer: i choose how much time to set for this loading page msg to appear, but now i figured out its just not gonna work out, i got 5 pages with images in them and waiting around 7 seconds each time u go to a page will just make visitors run away.
Well yeah, thats it…
tested on opera/safari/ie/firefox/chrome, on few of them it worked and on othes needed to wait around 3 seconds (in IE even more, too bad most of the pple are using IE :/) until the loading image msg appeared.
Well i belive waiting a few seconds wont harm anyone, at least now the page doesnt need to be hidden for around 7 seconds every time a person loads it
The previous version of the page didn’t work for me.
This updated version of the page works for me.
Make sure that your local web browser is seeing and using the updated version from the web site. Often your web browser will cache the previous version that uses to be there. If that’s the case, Ctrl+F5 or Shift+F5 should force the new version to be loaded for you.
Its not working, no matter where i put the script, it wont show the Loading image div at all, it just waits for the whole page to load and then when u click an image it’ll enlarge it like it should do, if u do it before the page loads it’ll take u to a different page…
u can take a look urself at http://sospets.brinkster.net/dogs.asp
it is fully hidden even now, but for 7 seconds always, no matter if ur browser will load the page in 4 sec or so…
I did it because of the thumbnailviewer.js function, pple cannot enlarge images until the page is fully loaded (if they click on it before the page is loaded, it shows the image on a different page and then they need to go back to the previous page again, as well as waiting another 7 seconds…)
i wanted at first to make it so when some1 click an image that wasnt fully loaded yet, it tells “Loading image” but i dont know how…
so i just want to mimic the time needed for a page to be loaded, any function that will help achieving it will be perfect…
That must be one of the ancient scripts from dynamic drive.
By moving the script file to the end of the body, you can remove the onload delay, and run the init process immediately, which attaches the expected events on to the images before the page has finished loading.
I think that it’s our internet speed that’s proving the difference. I have a fast broadband connection. It takes only a few seconds for the page to load, but even then, when I click on the image as soon as it appears on the page, it still works for me.
I suggest that we find someone else with a slow connection to carry on the testing.