homepage Welcome to WebmasterWorld Guest from 54.198.9.77
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
jpg images will not display on my site
Wozzzzza




msg:566277
 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.

 

storevalley




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

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 ...

Wozzzzza




msg:566279
 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?

Wozzzzza




msg:566280
 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.

storevalley




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

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)

benihana




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

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

Wozzzzza




msg:566283
 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved