Actually, you might be able to do that by using CSS alone. For example using the Image Preloader technique. Instead of the animation mentioned there, you could go for a simple, gray graphics. That way, the graphics would prevail if the primary image is not available.
|