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

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
davidtube
Forum Commoner
Posts: 79
Joined: Sun Mar 25, 2007 8:42 pm

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

Post 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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I would probably check if the file_exists(), and if not serve a custom placeholder image.
davidtube
Forum Commoner
Posts: 79
Joined: Sun Mar 25, 2007 8:42 pm

Post by davidtube »

ah good idea. Thanks.
Post Reply