Solved

images for homepage!

Posted on 1999-01-22
4
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to escape unsafe HTML tags 4 49
CSS Style on Chrome 1 57
Need help with FaceBook login 2 41
form isn't working is it missing a document 21 64
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.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

732 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