40 users online (0 members and 40 guests)  


  Results 1 to 5 of 5

Related

  1. Replies: 2
  2. Replies: 2
  3. Replies: 1
  4. TD background image as link    Forum: CSS Forum
    Replies: 1
  5. More than one link on an image    Forum: HTML Forum
    Replies: 3
  1. #1
    Brian's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2002
    Posts
    2

    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">

  2. #2
    Mikailus's Avatar
    Ugly Geezer

    Status
    Offline
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    135
    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"

  3. #3
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316
    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

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Good advice. And I am moving thread to 'HTML Help' Forum.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    Brian's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2002
    Posts
    2

    Wink Thank you all!

    Thanks you all for your help, Doorknob understood what I was trying to accomplish without my correct description. Big help.



Tags for this Thread