Solved

images for homepage!

Posted on 1999-01-22
4
263 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

856 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