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