Preserved Topic: Preload (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: oslo, Norway |
posted 10-04-2001 02:23
i just made a preload script, in the script i run a preload check if the picture is realy loaded it returns true if i run it localy and false if i run it troug the internet |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-04-2001 03:13
You're running the script to check if they've loaded immediately after you write the image tags. Locally, the images are loaded so fast that the tests return true - because the images are loaded right when the image tags are written. Over the internet, however, it takes the images longer to load, so they haven't loaded by the time the loadimages() function is called. |
Paranoid (IV) Inmate From: oslo, Norway |
posted 10-04-2001 03:23
Thanks, slime |
Neurotic (0) Inmate Newly admitted |
posted 10-05-2001 04:46
just as a very small side note: do you know that all your tut links are broken? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-05-2001 05:11
As a slightly bigger side note, you may also be interested to know about the image.onload event: |
Paranoid (IV) Inmate From: oslo, Norway |
posted 10-05-2001 13:47
Yes i know dark, this page is not finish at all. it just a project i made for learning javascript and php |