You are here: Need help in a conditional html test « HTML « IT news, forums, messages
Need help in a conditional html test

Posted by Cogito on 09/18/05 09:18

A daily graphic from another site is replicated in a page I'm building
like so:

<img src="http://www.---.com/pics/pic1.jpg">

The graphic, in the origination site changes several times a week and
always has the same file name, say, pic1.jpg. The problem is that on
certain days the graphic is not posted on the originating site at all.
This causes an ugly not found icon to show up in my page.

My question is: Is there some simple code that I can place around the
<img> tag that will test if the image is there. If there, display it
as before. If not, display a message 'image unavailable'.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация