Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble calling images 2

Status
Not open for further replies.

JennyW

Technical User
Mar 1, 2001
323
0
0
CA
Hi!

I’m having trouble calling images on my webpage.

My images aren’t in the root folder. They’re in a sub directory of the root.

The page that calls that image is also in a subfolder of the root /z_folder/calling_images.html

Here’s the code I used to call the image:

<img src=&quot;/my_pictures/bill_cosby.GIF&quot; width=&quot;159&quot; height=&quot;188&quot;>


Here’s my test page:


Does anyone know why my picture isn’t displaying?

I would like to keep the format of the img src code above.

On many pages I’ll be calling the same image over and over so I wanted to use a code that I wouldn’t have to change on any of the pages. Some of my pages might be in different folders than the next.

Have a fun weekend!
Jenny
 
Did you upload the image file? If so is it then right case? Some webservers can be case sensative. If so can you open the image from the website by just opening the image? Also what is the root folder? pigskin? z_folder?
 
I think that it may be the GIF callout being in uppercase. Try changing this to lower case and see if it helps.

Mike
 
Hey guys,

Actually, I was using the wrong SSI call. My fault.

I was using the following call in my shtml pages:

<!--#include file=&quot;include.txt&quot; -->

This command only adds files that are in the same directory.

This call however...

<!--#include virtual=&quot;../jennyw/include.txt&quot; -->

...can call ssi from other directories.

See the difference? The first one has 'include file' in it and the second has 'include virtual'.

Thanks for your input guys.
Jenny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top