Web Hosting Talk







View Full Version : Disappearing IMG Tag


jowd
11-08-2004, 06:08 PM
This problem is making me crazy...

Problem:
My html img tags are disappearing! In other words:

This: (copied from source file)<html>
<head>
</head>
<body>
<img src="jopie_ad.gif" alt="">
</body>
</html>Becomes this: (copied from view->source)<html>
<head>
</head>
<body>

</body>
</html>When viewed from the server. The entire tag just disappears!
It seems to only be this one graphic (jopie_ad.gif) that causes the problem. a_hit.gif, for instance, works fine.

Troubleshooting:

What I know:
Problem occurs when viewed over the web (hosted on iPowerWeb) AND on my local XP machine running IIS. Same problem, two completely different server pratforms.
Problem occurs when viewed using IE6 and Netscape 7. I haven't tried any other browsers.
The graphic is definately in the correct directory. (double and triple checked on both servers)
I've tried all the above with the html files saved as .php files. Same problem.
I have tried different name variations and even re-saving the graphic from a different graphics program.
I can drag the graphic file onto the browser window and it displays correctly.
I can view the html file directly from the hard drive in the browser and the graphic shows up correctly (URL: C:/... instead of http://localhost/...).
Substitute "jopie_ad.gif" with "a_hit.gif" and it works perfectly. :confused:


Files:

This one works, using a different graphic (a_hit.gif):
http://www.jopie916.com/problem/view_image1.html

This one does not work:
http://www.jopie916.com/problem/view_image2.html

Ths only difference between the two files is the graphic, they are otherwise identical.

Good Image:
a_hit.gif
http://www.jopie916.com/problem/a_hit.gif

Bad Image:
jopie_ad.gif
http://www.jopie916.com/problem/jopie_ad.gif
I've attached the bad image in case that link doesn't work.


Thanks

I really hope someone will be able to help with this. Ironically, the "bad" graphic is a banner ad advertising "expert" help...:blush:

-- Jonathan

X-TechMedia
11-08-2004, 06:15 PM
They both work for me
Ie 6 on WinXP

http://www.jopie916.com/problem/view_image2.html that shows the image

jowd
11-08-2004, 06:18 PM
BennyP,

Strange that it would work for you... I will try it on a few other machines at work later today. Maybe it's my computer?

luki
11-08-2004, 06:27 PM
Both work fine here too... I wonder is there is an Ad-blocker involved somehow (like via a transparent squid proxy)... since the file that is disappearing is called jopie_ad.gif. Try renaming it to jopie_a.gif and see... or rename the other one from a_hit.gif to ad_hit.gif and see if it disappears... just an idea.

kneuf
11-08-2004, 06:42 PM
Originally posted by luki
Both work fine here too... I wonder is there is an Ad-blocker involved somehow (like via a transparent squid proxy)... since the file that is disappearing is called jopie_ad.gif. Try renaming it to jopie_a.gif and see... or rename the other one from a_hit.gif to ad_hit.gif and see if it disappears... just an idea.
I too think this is the culprit, I hear Nortan blocks certain images that meet a certain criteria (having ad in the filename probably is the problem). Try disabling the ad blocking of your antivirus software if you have it and see if it makes a difference.

azizny
11-08-2004, 07:18 PM
Works fine for me.. both of em

jowd
11-08-2004, 08:36 PM
Hmmm..... I renamed it jopie.gif (no "_ad") and it worked!
Great Idea, the ad blocking software suggestion.

I tried disabling all of my Norton Internet Security Suite, but for whatever reason the graphic still does not come up with the "_ad" part in the name. Anyway, I guess I'd never tried that name variation.

Problem solved except I still havn't figured out what program is doing it. I can live with that for now...

Thanks everyone!

-- Jonathan

BTW: anyone know a good internet resourse to learn about transparent squid proxys? That's a new one for me.

ilyash
11-08-2004, 09:04 PM
both work for me too....