Solved

images for homepage!

Posted on 1999-01-22
4
259 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
ID: 1845598
Please reply me as soon as posible!
0
 
LVL 6

Expert Comment

by:PBall
ID: 1845599
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
ID: 1845600
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
ID: 1845601
using what and how do i do it!!!!!!!!!!!!
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

803 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