[Javascript] Re: An image loader working in FF but not in Opera, Safari...

gregorinator gregorinator at gmail.com
Wed Jul 13 07:33:33 CDT 2005


On 7/13/05, Guillaume <javascript at webdesignofficina.com> wrote:
>     if ( img.complete ) {
>         document.getElementById('loader').style.display = 'none';
>     } else {
>         document.getElementById('loader').style.display = 'none';
>             }

Maybe I'm missing the obvious, but it looks to me as though both
branches of the if wind up hiding the loader div, so it's going to get
hidden every time the function executes?  I checked your sample page,
and it's the same there.

gs



More information about the Javascript mailing list