| Author | 
  | 
PSA-PL
 
 
  Joined: 17 Oct 2011 Posts: 3 Location: Germany
  | 
 Posted: Mon 17 Oct '11 15:16    Post subject: Internet Explorer shows a red cross graphic when pictures 0 | 
     | 
 
  | 
 
Hello,
 
 
please can somebody help for this special problematic:
 
 
If a user visit our homepage with IE Browser and a graphic are missing then its create a error/missing-picture with a red cross in a corner > So if you use a firefox-Browser it shows correctly nothing on this position. 
 
 
Our Problem we must have a picture-matrix and when a picture is assigned then it will be shows.
 
 
So I hope you have a Info about a modification on appache (mod_rewrite o.other) to help me ... 
 
 
Thanks  a lot ... Peter | 
 
  | 
| Back to top | 
 | 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7442 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Mon 17 Oct '11 17:09    Post subject:  | 
     | 
 
  | 
 
Hi Peter,
 
you should use a transparent 1x1 px gif image for those parts.
 
 
if you still have a question please ask again. | 
 
  | 
| Back to top | 
 | 
PSA-PL
 
 
  Joined: 17 Oct 2011 Posts: 3 Location: Germany
  | 
 | 
| Back to top | 
 | 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7442 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Mon 17 Oct '11 19:54    Post subject:  | 
     | 
 
  | 
 
| I think it is might a good idea to use a php script as 404 error handler, and if the requested file was a picture the php (or cgi) script will deliver the transparent picture. | 
 
  | 
| Back to top | 
 | 
Virsacer
 
  
  Joined: 16 Jan 2010 Posts: 108 Location: Germany, Darmstadt
  | 
 Posted: Mon 17 Oct '11 21:59    Post subject:  | 
     | 
 
  | 
 
If there is no picture then why do you output an img tag there?
 
 
BTW: If you want to have a "broken image indicator" in firefox, put that in your userContent.css: 	  | Code: | 	 		  img:-moz-broken{
 
   -moz-force-broken-image-icon:1;
 
   width:24px;
 
   height:24px;
 
} | 	 
  | 
 
  | 
| Back to top | 
 | 
PSA-PL
 
 
  Joined: 17 Oct 2011 Posts: 3 Location: Germany
  | 
 Posted: Tue 18 Oct '11 10:45    Post subject: Thanks for your Help | 
     | 
 
  | 
 
I found a way by uae the "onerror" <TAG> Modification
 
 
so in that way: 
 
 
<img src="missingpicname.jpg" onerror="this.src='default1_1px_pic.jpg'"/>
 
 
Thanks a lot!!!
 
 
It works
 
 
Peter   | 
 
  | 
| Back to top | 
 |