Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Need help in a conditional html test
September 18, 2005, 6:18 am
rate this thread
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'.