[thelist] replacing a broken image with a default

Mark Baldwin mark.baldwin at attensa.com
Thu Dec 15 01:59:44 CST 2005


Hello,

You might try using writing a javascript handler for an error event  
in the img tag.

<img src="blah" onerror="replaceBroken()">

Mark

On Dec 14, 2005, at 9:46 AM, Kathie Han wrote:

> Hi,
>
> Is there a way to have any broken image on my site to be replaced  
> by a default image? And, the default image would have to exist in  
> different sizes. I found a way to do it in asp, but we don't use  
> that. Is there any other way? HTML, Javascript, Java, server-side...?
>
> Thanks for any help.
>
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !




More information about the thelist mailing list