Taco,

Not sure, but it might be that the onLoad is handled differently on the Mac.
I know that safari has a similar problem, with onLoad returning unexpected
results like this.



On 7/3/07, Taco Fleur <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I am using the following javascript on a site to remove any images that do
> not load. It seems to remove ALL images on MACs, anyone any ideas on this?
> Obviously for some reason it returns false all the time, but why?
>
>
> function isLoadedImage( obj ) {
>  if (!obj.complete) {
>   return false;
>  }
>  if ( typeof obj.naturalWidth != "undefined" && obj.naturalWidth == 0 ) {
>   return false;
>  }
>
>     return true;
> }
>
> function checkImage() {
>  for ( var i = 0; i < document.images.length; i++ ) {
>   if ( !isLoadedImage( document.images[ i ] ) ) {
>    document.images[ i ].style.visibility = "hidden";
>   }
>  }
> };
> myWindow.doAddOnloadListener( checkImage );
>
>
> --
> http://www.clickfind.com.au
> The new Australian search engine for businesses, products and services
>
> >
>


-- 



Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to