Welcome to WebmasterWorld Guest from 54.162.248.199

Forum Moderators: incrediBILL

Message Too Old, No Replies

jpg images will not display on my site

     
10:08 am on Dec 2, 2005 (gmt 0)



the full weirdest thing has just happened to me, im building a site that consists mainly of gif images and i went to put a jpg image on the site and in dreamweaver 8 it looks fine. but once i view it in a browser or upload it to a server the jpg image does not show, not even a place holder. but get this, the code for the image is not even there. its like the browser has grabbed the img tag and thrown it out. the page is a php page.

heres the code that appears in the page as viewed in notepad
<tr>
<td width="144" rowspan="2"><img src="images/topleftlogo.gif" alt="Logo" width="144" height="121" /></td>
<td width="634" height="92"><img src="images/banner.jpg" /></td>
</tr>

Heres the code from the view source of internet explorer from the same page

<tr>
<td width="144" rowspan="2"><img src="images/topleftlogo.gif" alt="Logo" width="144" height="121" /></td>
<td width="634" height="92"></td>
</tr>

as you can see, the banner.jpg complete img tag is missing. same thing in firefox and internet explorer, run it off my machine or a server it disappears.

has anyone seen anything like this before and can give me a fix?
i have even removed the css totally from the page and still same thing occurs.

10:18 am on Dec 2, 2005 (gmt 0)

10+ Year Member



the page is a php page ...

Something tells me your code isn't doing what you think it is. If you cut and paste your "code as it appears in notepad" into a text file and surround it with body/table tags all is fine when you view this as an HTML page ...
10:23 am on Dec 2, 2005 (gmt 0)



ive just tried a totally blank page with this code in it and named it test.html and opened it and works fine.

<img src="images/banner.jpg" width="634" height="91" />

then i renamed the exact same page to test.php and it dont work any more. goto view cde in IE6 and it give a blank page.

that line is the only line of code on the page, what gives?

10:26 am on Dec 2, 2005 (gmt 0)



something even weirder, ive just replced the code with an echo where the img tag diappears

<tr>
<td width="144" rowspan="2"><img src="images/topleftlogo.gif" alt="Logo" width="144" height="121" /></td>
<td width="634" height="92"><? echo "fsdfd"."<img src='images/banner.jpg' width='634' height='91' />";?></td>
</tr>

i run the file and the "fsdfd" part displays in the screen but once again the whole img tag has gone.

10:45 am on Dec 2, 2005 (gmt 0)

10+ Year Member



then i renamed the exact same page to test.php and it dont work any more

Where are you running this code? If you do this on your own machine and you don't have PHP installed it won't work ...

(You probably know this ... just thought I would check)

10:48 am on Dec 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have norton internet security running? or similar? an adblocker of some sort maybe...

Try changing the image name from banner to something else.

Sounds like an adblocker is, well, blocking ads. And being called banner.jpg is a pretty big clue that its an ad...

Ben

10:55 am on Dec 2, 2005 (gmt 0)



benihana, your a legend, that worked perfectly. i would have never thought of that ever. i have learnt a good lesson now, if code magically disappears, it might be an ad blocker. i just renemed the image to another name and it worked perfectly.
i do have NIS2004 and it must be removing the ads.
thanks for that.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month