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

Posted by Els on 09/18/05 09:27

Cogito wrote:

> 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.

No offence, but that sounds like you're hotlinking to a site that's
not yours.

> 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'.

Probably serverside, but not in the HTML.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

 

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

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