Connecting Tech Pros Worldwide Help | Site Map

How can I get this image file to display?

Member
 
Join Date: Feb 2007
Posts: 95
#1: Oct 1 '09
I'm having trouble getting a simple image file to display on my webpage. "bannercopy.gif" is in the same folder as the .html file. It appears when I preview it in FrontPage but does not display when I run it from the web.

And other images appear with no problem.


Expand|Select|Wrap|Line Numbers
  1. <table border="0" width="100%" id="table141" cellspacing="0" cellpadding="0">
  2.                         <tr>
  3.                             <td valign="top" style="padding-bottom: 15px">
  4.                             <p align="center">
  5.                             <img border="0" src="bannercopy.gif" width="456" height="144"></p>
  6.                             <p align="center">
  7.                             </p>
  8.                             <p align="center">
  9.                             </p>
  10.                             </td>
  11.                         </tr>
  12.                     </table>
  13.  
Can anybody help me?
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Oct 1 '09

re: How can I get this image file to display?


Quote:

Originally Posted by andersond View Post

"bannercopy.gif" is in the same folder as the .html file.

are you sure? (is it also on the server?)
Member
 
Join Date: Feb 2007
Posts: 95
#3: Oct 1 '09

re: How can I get this image file to display?


I am certain it's both in the same folder and on the server.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,148
#4: Oct 1 '09

re: How can I get this image file to display?


The server is probably case sensitive. Make sure you have the casing right.
Also, is the image ACTUALLY a gif file? If it's not and you changed the extension, some browsers might refuse to display it since the content-type won't match the internal image type.
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,561
#5: Oct 1 '09

re: How can I get this image file to display?


I would bet that FrontPage injected the src as something like "c:\bannercopy.gif" which won't be found on the server.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,148
#6: Oct 2 '09

re: How can I get this image file to display?


I personally dislike both FrontPage and DreamWeaver(and the adobe one, although I think they merged yes?) I feel they write sloppy/poor code. Doing things like adding that absolute path c:\
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#7: Oct 2 '09

re: How can I get this image file to display?


Quote:

Originally Posted by Plater View Post

I feel they write sloppy/poor code.

nothing can write as efficient code as a source code writer.
Reply