I found a little image preload utility that works correctly only when the page is accessed remotely. The problem is with its error handling function. If one of the images to be preloaded is missing (and in the example I have posted, the image rockwell.jpg is not on the server), it should show an error message and quit. It does this correctly in all four browsers (FF2, IE7, Safari 3 and Opera 9) when the page is accessed remotely. But, I access the page locally (WinXP Pro SP2), IE7 and Safari 3 give the appropriate error, but Opera 9 runs the page and simply omits the missing image, while FF2 hangs and shows no message.
You can see a working example at:
there, of course, things work as they should. To see the problem, view and save the source and try loading the page locally. Obviously, you won't need the images since the idea is to generate the error, but if you want to see it work properly, you can edit line #13 and specify the images you want to use.
Thanks,
JAS
You can see a working example at:
there, of course, things work as they should. To see the problem, view and save the source and try loading the page locally. Obviously, you won't need the images since the idea is to generate the error, but if you want to see it work properly, you can edit line #13 and specify the images you want to use.
Thanks,
JAS