Results 1 to 5 of 5
Related
-
problem linking image in folder within the main folder Forum: HTML Forum
Replies: 2 -
Script to display names of files in that folder as link Forum: HTML Forum
Replies: 2 -
Script, Checking To See If Folder Exist -- If Not Create That Folder Forum: CGI Perl Forum
Replies: 1 -
TD background image as link Forum: CSS Forum
Replies: 1 -
More than one link on an image Forum: HTML Forum
Replies: 3
-
12-09-2002, 11:25 PM #1
Need To Link to Image In A folder Above
I thought I had read once how to link to an image in a folder above instead of a folder in the same folder. Of course I didn't see the need for that untill now.
The problem with linking to the url is that I want to be able to view the pic's when it's open on my local machine.
I am structuring a site for my kids school and want a folder set up for each classroom. I also wish to save disk space and only have one copy of each picture loaded.
So, how do I modify this code to go up one folder for retrieval?
<img src="images/pic.gif">
-
12-10-2002, 02:16 AM #2
If I understand correctly and you mean an image on a different server/machine, replace the "images/pic.gif" with the location of the image you wish to display.
eg src="http://www.other-domain.com/images/picture.gif"
-
12-10-2002, 08:58 AM #3
to link to images in the folder one level below html,
<img src="../images/pic.gif">
to go 2 levels below,
<img src="../../images/pic.gif">
to link to a different folder on same level,
<img src="../different_folder/pic.gif">
hope that helps
-
12-10-2002, 05:05 PM #4
Good advice. And I am moving thread to 'HTML Help' Forum.
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
12-10-2002, 11:20 PM #5
Thank you all!
Thanks you all for your help, Doorknob understood what I was trying to accomplish without my correct description. Big help.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum