Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: alternative img

Reply
Thread Tools

Re: alternative img

 
 
Clubberboy
Guest
Posts: n/a
 
      06-25-2003
David de Kloet wrote:
> I make a dynamicaly creatated image tag and i'm not sure the image is
> going to exist at the time someone views my homepage. Is there a way
> to tell the browser it should show another (default) image if the
> first one isn't available?


If you can't do it server-side try
<img src="good.jpg" onerror="this.src='bad.jpg'" />

--
http://www.techtronix.be


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
putting img above/bellow img ? Jopek HTML 7 04-26-2009 10:26 PM
how to replace this like <img width=100 ...> with <img width="100" ...> zhanye815@gmail.com Perl Misc 7 06-21-2006 11:16 PM
Problem: <img></img> Philipp Lenssen XML 15 07-03-2005 09:23 AM
how to download img from html img tag news.austin.rr.com ASP .Net 2 04-27-2005 06:25 PM
Re: alternative img Richard HTML 1 06-25-2003 10:59 AM



Advertisments