Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I had a question earlier about images not loading on my website. I figured out what I was doing wrong, but now I am having a problem with background images. I can set the background image without a problem, however as soon as I save the page and try to browse the background is gone. Any ideas? Do you need more info? I am using Netscape Composer 7.1
Thank you,
RAF

Please help. I'm getting quite frustrated and can't find an answer anywhere else. To be more specific, Netscape Composer keeps clearing the 'URL is relative to page location' checkbox.
The image is in the same folder as the web page.
Anyone? Please?
RAF

raf,
Just a hunch but i'd check that the case of the graphic's name match in both your html code and the actual file name. Windows isn't case sensitive but a lot of hosts are running Unix which is case sensitive. In windows files named (index.html, Index.html INDEX. html and index.HTML would all be looked at as the same file where in Unix that would be considered 4 different files. So any variation would work correctly on a Windows box but once you upload it to a Unix server it would only work if the case matched exactly. It's a very common oversight.
good luck,
wired

raf-
The more information you post, the faster you will get replies because it will be easier to find the problem instead of taking wild guesses and speculations.Can you post your page online and give us a link to it? If so, your problem will be a quick one to resolve. If not, give as much information as possible...ie the exact code you are using to place the background image on your page, and the filename of the background image.
Also, in a problem like your previous one, when you find a solution yourself, remember to post it so future people reading your post with the same problem can benefit from your experience.
Good luck,
-SN

Thanks guys
My thoughts are sort of all over the place so let me try and clear this up.
- I have very limited knowledge of html so I'm using Netscape Composer because it's WYSIWYG.
- My problem is occuring before uploading to the server. I go to page colours & backgrounds; I use the browse for file button and select an image located in the same folder as my saved page; I check the box to indicate that the url of the image is relative to the location of the page (/images/image.jpg); I click ok; I save the page. The background is now visible in Composer but when I click to preview in Navigator the background doesn't show up. When I go back to page colours & backgrounds the url is relative.. check box is cleared (file:///C:/Documents/My_Website/images/image.jpg).
- Here are the first couple of lines of code after body:
<body link="#000000" vlink="#000000" alink="#000000"
style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); background-image: url(file:///E:/RAF's_Canadian_Music_Family_Tree/images/wmpage_background.jpg);">Composer generates the code based on my design. With the above code, background is visible in Composer but not in Navigator or IExplorer.
- Here's a link to the page online:
http://members.rogers.com/raf531_6/wmfamtree.html- I didn't post how I solved the last problem because of my pure stupidity. I didn't upload the images to the server.
Let me know if you need more info. Thanks for your help.
RAF

Change this:
file:///E:/RAF's%20Canadian%20Music%20Family%20Tree/images/wmpage_background.jpg
to justwmpage_background.jpg
And upload wmpage_background.jpg to the same folder as the wmfamtree.html page.
The file:/// tells the browser to look for the file on the user's hard drive. Taking that out will tell the browser to look for it in the same folder as the html page is on.
Good luck,
0SN

It won't stay. I forgot but I actually tried fixing it directly through the code as you suggest but it resets itself the same way the check box clears itself.
RAF

raf,
Just type the actual path to the file inn the "Background Image" field the way you want it relative to your index.html file (/images/image.jpg) instead of using "choose file" and then it won't use the absolute path you're trying to avoid.
In Composer you only "choose file" for absolute paths and you type the filename/path in for relative paths.
ciao,
wired

I tried using Mozilla's Composer (the same one Netscape uses) and I was frustrated in a few minutes. I would recommend something, almost anything, else. Try something like EasyHTML. No, it's not for breadwinning, but I think it really is easy. Ill admit, I have used it more than Dreamweaver.
What you're struggling with is a slightly abstract concept. There are no images in a HTML file. There are only references to images (URL's, or locations where the image file actually is). These references usually go to a URL - ideally in a directory somewhere on your website. Why a URL? Well, when a browser downloads the HTML you want it to find the image and display it in the page right? So if the user is online their browser can grab the image by looking at the URL in the IMG tag. The Composer program is assigning the image's location to your harddrive, because that's the only location it knows of where that image is. Unfortunately, this only works for you on your computer. No one else with that HTML would be able to get that image.
The solution is to place the images somewhere on the Internet where anyone who gets your webpage can access them (try your website). Whenever you want those images in your HTML page, just reference their URL in the image tag. Again, I wouldn't recommend the Composer program, but use what you want.

Thank you to everyone for your input. Using Anonproxy's suggestion, I uploaded the image to the server first then entered the url in the background field. Finally it works!
Re. Composer vs. Dreamweaver:
I downloaded the trial version of Dreamweaver and with all the functionality of that program I could do a lot more with the site. That is also the problem. I spent hours working on one page and still didn't manage to end up with a completed design that I liked. With Composer's vast limitations I had managed to build a simple but nice looking site consisting of about 25 pages in about an hour & a half.
The site is just a hobby and a learning experience. I will continue to explore other resources and enhance the pages as I learn new techniques.
Thanks again, everyone.
RAF

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |