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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using include file... but doesn't show images 1

Status
Not open for further replies.

w11z

Programmer
Mar 26, 2001
40
CA
Hello!
I am using an include file (<!-- #INCLUDE VIRTUAL = &quot;includes/header.asp&quot; -->) and the header.asp contains images that are in another folder (<img src=&quot;../images/spacer.gif&quot;>) . the problem is that the file taht calls the include is in at another level. The images are not displayed. How do I solve this problem?
Tnaks
 
Amend your img tag to pull the image as if it were from the root. So if images was a folder in your root folder you would do
<img src=&quot;/images/spacer.gif&quot;>

If it was in a folder called folder1/images from your root you would do
<img src=&quot;folder1/images/spacer.gif&quot;>




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top