Page 1 of 1

Image placeholders - can't get Firefox and IE to work nicely

Posted: Fri Sep 28, 2007 6:40 am
by davidtube
I've got a page with dynamic URLs to images which will some times exist and sometimes they won't. The problem is that is there is no image, by default Firefox just acts as though there is nothing there (even with height and width set), whereas IE7 shows an image placeholder. Is there a way I can get them to act the same?

Posted: Fri Sep 28, 2007 7:56 am
by John Cartwright
I would probably check if the file_exists(), and if not serve a custom placeholder image.

Posted: Fri Sep 28, 2007 12:54 pm
by davidtube
ah good idea. Thanks.