Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Nov 2005
    Location
    the great state of ...wait Utah is not a great sta
    Posts
    3
    Member #
    11805
    Ok looked to find something on this topic but failed so If this is a repeat. I'm sorry and will commit ritual suicide imeadiatly.

    Keep in mind that my website hasn't left the drawing board yet(i.e. still on my hard drive):

    I have a very curious problem when trying to put a .jpg or .gif on my page, It flat won't load if I use a relative link. Absolute links work, and if I use a relative link to another part of the site, works just fine. But I try to add a pic with a relative link, the page loads, no pic. This happens in both Firefox and Exploder. I have it set up like this:

    I.web site main folder
    a.my site
    b.images folder
    1.Pic 1
    2.Pic 2
    and so forth.

    I'm using this script:
    <img src="images/Bio_Hazard.jpg" alt="cool art">

    So what am I doing wrong. Or is it time to swing the "Mighty Hammer of Computer Fixing?

    Thanks in advance.

  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    So, lets say you have a file named image_test.htm. This file is in the my site folder?

    Is the images folder a sub folder of my site or a sub folder of web site main folder?

    Also, you have spaces in your folder names, try taking them out/use underscore instead.

    Failing that, go back to basics. Put both the image and the html file in the same folder and get that working first, then move the image to your preferred choice and amend the src.

    If you need to go back to the root then into the images folder.

    HTML Code:
    <img src="../images/Bio_hazard.jpg" />
    Hope this helps

  4. #3
    Senior Member
    Join Date
    Apr 2005
    Location
    Hatfield, England
    Posts
    855
    Member #
    9790
    Quote Originally Posted by clownsonfire
    I.web site main folder
    a.my site
    b.images folder
    1.Pic 1
    2.Pic 2
    and so forth.

    I'm using this script:
    <img src="images/Bio_Hazard.jpg" alt="cool art">
    Is your folder called "images" or "images folder" if so you want to change it to...

    <img src="images folder/Bio_Hazard.jpg" alt="cool art">

  5. #4
    Junior Member
    Join Date
    Nov 2005
    Location
    the great state of ...wait Utah is not a great sta
    Posts
    3
    Member #
    11805
    Quote Originally Posted by Perad
    Is your folder called "images" or "images folder" if so you want to change it to...

    <img src="images folder/Bio_Hazard.jpg" alt="cool art">
    Thanks for the reply.
    I checked the file path and that was ok to
    even got down to cut and pasting file names. still no luck. Could it be because it's on my hard drive. It's tying to read from "C:\Documents and Settings\Main\My Documents\Web learning\images" and I seem to remember an error message along the lines of "C:\ is not a valid protocol" or somethiung like that. Any Ideas how to get around such a thing? Dont know. Thanks again.

  6. #5
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Wait.. are you trying to access a image from your C:\ which is called from a file on the web?

  7. #6
    Junior Member
    Join Date
    Nov 2005
    Location
    the great state of ...wait Utah is not a great sta
    Posts
    3
    Member #
    11805
    Bingo!!!

    Thanks guys!!! No the problem was the opposite, bfsog, but just as effective at ruining my wed design fun. All the files were on my HD and since C:\ is an invalid protocol my browser can't find it. I uploaded the test page to my web host and it works fine. I knew this was a problem with a stupidly simple answer. w00t!
    -Clowns-


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:47 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com