Solved

images for homepage!

Posted on 1999-01-22
4
254 Views
Last Modified: 2010-04-09
Dear sir,  
    I have some pictures on my c:\ in the file format as .JPG and .GIF. I have made a homepage in HTML and have used the command <img src=File://c:/home/images/fire/jpg> ( assuming that they are present in the sud-directory images.Now when i view my homepage from other computer the are no pictures at all. So i want to ask you how do i put these pictures on the my web. because i can only see them from my computer! Thank You,
0
Comment
Question by:der_23
  • 2
4 Comments
 

Author Comment

by:der_23
Comment Utility
Please reply me as soon as posible!
0
 
LVL 6

Expert Comment

by:PBall
Comment Utility
Well, other computers might not have (I'd bet 99.9999% of the time) a directory called : c:\home\images on its c: drive, and (another 99.9999%) a file called fire.jpg in that directory.

You really should not code the img src with a hardcoded url that link it to a file://

What you need to do is:
on your website, create a directory out of its home directory (if your root directory is located physically on c:\home on the web server), create a subdirectory called images and copy fire.jpg to that directory.

now, in the page itself, only link the image to /images/fire.jpg.

so it will look like <img src="/images/fire.jpg"> this way, the image will stay a relative to the web site root directory.

Please don't confuse the computer root directory with a web site root directory since they are not the same (another 99.9999% of the time).

hehe.

0
 
LVL 4

Accepted Solution

by:
ruperts earned 50 total points
Comment Utility
First change your HTML to
<img src="fire.jpg">

Add quotes, replace the / between fire and jpg with a dot! Do this for all your images...

When you transfer your files to your websever (ie. www.yourpage.com)
Transfer all the images as well as the HTML page.
Put all the images in the same directory as your html page.

The HTML code refers to images, it doesn't actually include them, so it can not "stand-alone".

 this should work!

Rupert


0
 

Author Comment

by:der_23
Comment Utility
using what and how do i do it!!!!!!!!!!!!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now