Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

images for homepage!

Posted on 1999-01-22
4
Medium Priority
?
272 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 100 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

604 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