Click to See Complete Forum and Search --> : image


Liphoto
11-01-2005, 09:15 AM
i understand that in order to put an image in a page i would have to use coding of this format;
<img src="url">
so my question is, if i have a picture saved "My documents" folder and my user name is "user". what woul the url of my picture be and how would i incorporate it in the coding to display a picture in an HTMlL document.

Fang
11-01-2005, 09:33 AM
This will, of course, not work on a hosted websitesrc="C:/Documents and Settings/user/My Documents/myPicture.jpg"

The Little Guy
11-01-2005, 09:34 AM
Is this all on your hard drive?

If so, you would link to the image somthing like this:

C:/My%documents/family.jpg

Where ever a space is, in a folder name, you need to use a % mark

LJK
11-01-2005, 10:01 PM
Hi -
It's a heck of a lot easier just to make a folder on your Desktop: ___site, and be sure to save all of your .html files in it. Inside of this folder, make another: images. Put all of your images inside of it. Your links will then look something like:

<img src="images/lion.png" width="150" height="320" alt="a lion" />


Thus, using relative instead of absolute paths for the files - similar
to how you'd set it up on a server.

Have fun,
El