- This topic has 2 replies, 3 voices, and was last updated 19 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Archives › Computer Support › Computer Support Discussion › Code to show images in other directory
I remembered this code for about 7 years and I recently forgot it… and I actually need to put it to use. There is a code in HTML that you can place in
or actually probably anywhere where if there is images located in another directory all I need to do is add that line of code. The code would have the full directory path in it (ie: code Index of /images “>If anyone knows what the code is, I would really appreciate it. I cant believe I forgot it.
Thanks
just do a websearch for HTML codes
I think you are referring to directory structure.
‘.’ refers to the current directory (probably not useful to you.
‘..’ refers to the parent directory – or the one above the current one.
So if you have this structure:
c:webindex.htm
c:webimagesimage1.jpg
c:webfolder2index2.htm
If you are on index.htm, to refer to image1.jpg without using a full path, you would refer to it as “images/image1.jpg”
if you are on index2.htm, you would refer to image1.jpg by using “../images/image1.jpg”
Is that what you were asking?