Question about pictures on a webpage

FreshFish

Golden Member
May 16, 2004
1,180
0
0
Hey I have what is probably a really basic question about creating a webpage.

I downloaded the Nvu html editor (I saw it in the free program thread :D) and I tried putting together an extremely basic webpage to see it work. Basically my problem is this:

One page has a picture on it. I inserted the picture using Nvu, and I uploaded the page with the picture on it and the picture to the correct directory (I am using a free account thru tripod). When i view the page on my computer I can see the picture just fine, but when I view the page from my girlfriend's, the picture won't show up! The same thing happened the other way around too. She made a basic page, uploaded it to the web with a picture, she can view the page fine on her comp, but noe its ME who cant see her picture. Hmm what am I doing wrong? Thanks a lot,

and keep in mind, I know *nothing* about creating web pages.

Thanks!

Edit: Also, another thing that doesn't work (it doesn't even work on MY computer...) is the "back" button. For some reason it just won't go back. It's annoying to put a "Home" link on each page.
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
go away noob!
Lol, just kidding ,p

In any case, the problem you're having is due to the way NVU (and most other WYSIWYG editor) inserts the image to your page.
If you look at the html source, you'll see that the image you inserted will have something like:
<img src="file:///C:/Documents%20and%20Settings/blahblahblah.png">

What that means is that everytime your page wants to display the image, it will go to your local computer and look for c:\documents and settings\blahblahblah.png

what you will want is a relative path to the image, which is relative to the page that you are viewing.
I haven't found an easy way of doing it yet, but here's what you can do:
1. click on add image
2. choose the image file you want to add
3. remove the full path to the image, leaving only the image name (or directory where you want the image to reside on the server/tripod)
4. notice that the greyed-out "URL is relative to page location" is checked
5. click ok

When you do that, make sure the directory structure of your HTML and image file matches that on your server (tripod)

So, let's say this is your file:
index.html
images/image.jpg

In NVU, add the image and make the image location to "images/image.jpg"

In tripod, upload the files to index.html and images/image.jpg

I hope it's clear enough
 

FreshFish

Golden Member
May 16, 2004
1,180
0
0
Well, I made the change in Nvu (change the file path), but I haven't had the chance to try it on a different computer yet. What you say makes a lot of sense though and I thank you very much stndn for the very good explanataion!

Now does anyone know about how to make the back buttons work?

Thanks again!
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Could we see the source for your pages? A link to where you have them online maybe?
 

FreshFish

Golden Member
May 16, 2004
1,180
0
0
Actually I just got a chance to use a different computer and it works! Not only the pictures, but the back button too! Thanks a lot for the help.