PDA

View Full Version : transparent gifs won't display



perfeser
04-01-2006, 03:15 AM
Two transparent gifs fail to display on a web page I am building. What appears instead, is the indication that a graphic is missing – a red “X” in a tiny box. Several other gifs, not transparent, on the same page, do display. These same transparent gifs can be attached to an e-mail message, and then selecting the attachment in the e-mail displays the gif. Inserting the images in a Microsoft Word document also works. I have checked carefully the html coding and the filenames of the subject gifs. The html coding I use to call up the images on web pages is: <img src="whatever.gif">

I have not forgotten the quotation marks. I have checked and rechecked my work. I have copied it to another folder. I have tried changing the file names and the corresponding coding. I have tried using upper case file names, contrary to my habit. I tried assigning a size, thus:
<img src="whatever.gif" width="100">

I have tried adding a blank “alt” specification. This is something I do to make pages validate, when there is no meaningful alpha substitute for the graphic:
<img src="whatever.gif” width="100" alt="">

I have tried adding a real alt specification:
<img src="whatever.gif” width="100" alt="whatever">
That causes the “whatever” to appear on the page next to the red “X”.

I have tried the blank alt without the size specification:
<img src="whatever.gif” alt="">

I have tried the alt specification without the size specification:
<img src="whatever.gif” alt="whatever">
That expanded the tiny box enough to put the “whatever” next to the red “X”

The page has a graphic background:
<BODY BACKGROUND="3.gif" BGCOLOR="#DDDDDD" text="#000000" LINK="#FFFF00" VLINK="#FFFF00" ALINK="#FFFF00">
Copying the page file and the graphics other than 3.gif to another folder produces the page without the background, and that doesn’t cure the problem.

I have tried getting a night’s sleep, and starting over. I am not new at this. I am stumped.

Greg
04-01-2006, 08:28 AM
How about checking that you're correctly specifying the source location of the gif, eg:
<img src="images/whatever.gif" width="1" height="1" />

perfeser
04-01-2006, 09:50 AM
How about checking that you're correctly specifying the source location of the gif, eg:
<img src="images/whatever.gif" width="1" height="1" />

Thanks, Greg, but that's not it. the html file and all the gifs - both those displaying and those not displaying are in a single folder.

kingdragonfly
04-01-2006, 10:03 AM
If a red "X" appears it means one of two things:

* the GIF is missing
* the GIF is bad
* the GIF's permission doesn't permit it to be read by the Internet server's service account.

You should be able to type in the address directly and check these possibilities. If you web site is "http://www.foobar.co.nz/" and your image source is "<img src="images/whatever.gif" ... />", then try this address:

http://www.foobar.co.nz/images/whatever.gif
(JUST AN EXAMPLE, DON'T CLICK)

If you have direct access to the Internet server, any permission errors should show up in the logs.

perfeser
04-01-2006, 10:34 AM
If a red "X" appears it means one of two things:

* the GIF is missing
* the GIF is bad
* the GIF's permission doesn't permit it to be read by the Internet server's service account.

You should be able to type in the address directly and check these possibilities. If you web site is "http://www.foobar.co.nz/" and your image source is "<img src="images/whatever.gif" ... />", then try this address:

http://www.foobar.co.nz/images/whatever.gif
(JUST AN EXAMPLE, DON'T CLICK)

If you have direct access to the Internet server, any permission errors should show up in the logs.

Thank you, kingdragonfly, for your suggestions.

The gifs are not missing or bad.
I was able to attach them to an e-mail and open them from there. I was able to insert them in a Microsoft Word document, and they displayed there.

I don’t understand how there could be a permission issue. The files are in a folder on my hard disk. Incidentally, the page is already on the web. I am trying to modify it with the addition of these two gifs. I tried uploading the page revision and the new gifs to the website. The other gifs still displayed and the two new ones still didn’t. I don’t have logging enabled, but I don’t see how there could be any help there.

kingdragonfly
04-01-2006, 10:51 AM
I'm guessing you're running as "localhost".

When I say missing or bad, I mean from the Internet server's perspective. Did you try my tip about typing in the image address directly?

http://localhost/images/whatever.gif
(JUST AN EXAMPLE, DON'T CLICK)

Greg
04-01-2006, 10:58 AM
Incidentally, the page is already on the web. Perhaps you can give us the url so we can look?

Rob99
04-01-2006, 11:01 AM
Upload them to imagef1.net.nz

Rob99
04-01-2006, 11:07 AM
Just clicked through a few of your websites, I didnt see any animated giffs not working.

Maybe its your browser or other program thats disabling them for you.

perfeser
04-01-2006, 11:49 AM
I'm guessing you're running as "localhost".

When I say missing or bad, I mean from the Internet server's perspective. Did you try my tip about typing in the image address directly?

http://localhost/images/whatever.gif
(JUST AN EXAMPLE, DON'T CLICK)

The page and the gifs are in a single folder. The various gifs are called in the html by just the file names. Is there any point in typing in the whole path for these two gifs? Even if that worked on my disk, I twould have to be a different path - one that looks like your sample - in the uploaded page.

perfeser
04-01-2006, 11:50 AM
Perhaps you can give us the url so we can look?

http://www.santamonicadrumcorps.org/

Greg
04-01-2006, 11:56 AM
I can't see where the missing gifs are supposed to be located. Ie where are the red x's?

perfeser
04-01-2006, 12:40 PM
I can't see where the missing gifs are supposed to be located. Ie where are the red x's?

Perhaps, Greg, you are using Netscape. IE 6.0, which is on my computer, displays, when a graphic is missing, a red X in a tiny white box. That in turn, is in the upper left corner of a larger box, barely delineated, the size specified in the html.

Rob99
04-01-2006, 12:53 PM
Your code has a ' after the .gif


<img src="smdcleft.gif'" width="180" alt="">

<img src="smdcright.gif'" width="180" alt="">
should be

<img src="smdcleft.gif" width="180" alt="">

<img src="smdcright.gif" width="180" alt="">

FoxyMX
04-01-2006, 12:56 PM
Yes, I can confirm that the page displays two empty image boxes in IE but not in Opera nor Firefox.

Edit: Well done Rob. Even though I saw that extra ' my font in Notepad isn't the best for picking up those kinds of typos so I didn't take too much notice of it. Quite an easy trap to fall into. :rolleyes:

bartsdadhomer
04-01-2006, 01:00 PM
rob99 is dead right
http://www.santamonicadrumcorps.org/smdcleft.gif'
brings up nothing
http://www.santamonicadrumcorps.org/smdcleft.gif
shows the gif

perfeser
04-01-2006, 01:24 PM
Thank you, Rob 99. That’s it. A local friend, not through this forum, worked it out also. He sent me a corrected file and wrote:

Try this version. In each src="xxx.gif" I found a ' before the closing ". Don't know why I couldn't see it on your screen.
--Bob

I, the perfeser, still can’t see it on my screen.

Again, thank you, also, Glen, FoxyMX, and bartsdadhomer. I just joined the forum because of this problem. I hope that I. in turn, will be able to give some help toothers.