Is there a way to show alternate image if source image is not found? I know to accomplish this is by doing something like below:
<img src="imagenotfound.gif" alt="Image not found" onError="this.src='imagefound.gif';" />
myimage.gif isn't transparent, you could use multiple backgrounds:
background: url('myimage.gif'), url('fallback.gif');
fallback.gif will only be visible if
myimage.gif isn't available.
fallback.gif may be downloaded even if
myimage.gif is available.
Alternatively, even though not widely supported, CSS Images 3 introduces the
background: image('myimage.gif', 'fallback.gif');