There's a simple way to have a loading image without any javascript at
all. Simply use CSS. Either give the image in question a background
image which serves as your "loading" image (I've not tried this out so
am not sure it would work), or if that approach doesn't work, wrap
your image in anoth
I think this is the easiest tool you can use.
jQuery.Preload: http://flesler.blogspot.com/2008/01/jquerypreload.html
It has all you need.
You send the img tag to the preloader and using the options 'find' and
'replace' you generate the replacement url.
Using the option 'placeholder' you to set a
I need something for that end. Dan's suggestion
> works flawlessly.
>
> Thanks though.
>
> _
>
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Josh Nathanson
> Sent: Tuesday, May 27, 2008 4:37 PM
> To: jquery-en@googlegroups.com
>
t: Tuesday, May 27, 2008 4:37 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Display loading image while alternate image loads.
Hi Andy,
In regards to whether the file exists...I know you're using ColdFusion, is
it possible to use the CF function FileExists in your CF code to deter
s.com
Subject: [jQuery] Re: Display loading image while alternate image loads.
Andy,
You can use the onerror event of an image to determine if an image loaded or
not. Also, you could load the image using JS's Image object-that way you
could display a "loading" image. Here's so
Josh
- Original Message -
From: Dan G. Switzer, II
To: jquery-en@googlegroups.com
Sent: Tuesday, May 27, 2008 1:56 PM
Subject: [jQuery] Re: Display loading image while alternate image loads.
Andy,
You can use the onerror event of an image to determine if an image loaded or
Andy,
You can use the onerror event of an image to determine if an image loaded or
not. Also, you could load the image using JS's Image object-that way you
could display a "loading" image. Here's some example code:
http://www.rgagnon.com/jsdetails/js-0083.html
-Dan
_
From:
7 matches
Mail list logo