PDA

View Full Version : Need help


rvdplug
03-28-2003, 11:50 AM
This is my code. The problem is the images come from my files on P.C. I have uploaded them onto my server so I need to know how to replace them links to my image files on comp to my image files on web please.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<center><img src="file:///C|/Documents and Settings/Dan/Desktop/sitepractise/cmofficebanner2.gif" width="468" height="60" alt="" border="0"></center>
<head><a href="http://www.sigames.com/"><img src="../../../../Champman Fansite Kit/logos/cm4_logo_jpg.jpg" border="0" width="100" height="42" alt="" align="top"></a>
<title>Home</title>
</head>

<body><a href="http://www.angelfire.com/ult/cmoffice/news.html"><img src="../sitepractise/newsbutton.gif" border="0" width="90" height="40" alt="" align="left"></a><a href="http://www.angelfire.com/ult/cmoffice/footballnews.html"><img src="../sitepractise/Footballsection/footballnewsbutton.gif" border="0" width="90" height="40" alt="" align="right"></a><br><br><br><br><br><br>
<a href="http://www.angelfire.com/ult/cmoffice/downloads.html"><img src="../sitepractise/downloadbutton.gif" border="0" width="90" height="40" alt="" align="left"><a href="http://www.angelfire.com/ult/cmoffice/footballfixtures.html"><img src="../sitepractise/Footballsection/footballfixturesbutton.gif" border="0" width="90" height="40" alt="" align="right"></a></a><br><br><br><br><br>
<a href="http://www.angelfire.com/ult/cmoffice/links.html"><img src="../sitepractise/linksbutton.gif" border="0" width="90" height="40" alt="" align="left"></a><a href="http://www.angelfire.com/ult/cmoffice/footballresults.html"><img src="../sitepractise/Footballsection/footballresultsbutton.gif" border="0" width="90" height="40" alt="" align="right"></a><br><br><br><br><br>
<a href="http://www.angelfire.com/ult/cmoffice/screenshots.html"><img src="../sitepractise/screenshotsbutton.gif" border="0" width="90" height="40" alt="" align="left"></a><a href="http://www.angelfire.com/ult/cmoffice/footballresults.html"><img src="../sitepractise/Footballsection/footballtablesbutton.gif" border="0" width="90" height="40" alt="" align="right"></a><br><br><br><br><br>
<a href="http://www.angelfire.com/ult/cmoffice/players.html"><img src="../sitepractise/playersbutton.gif" border="0" width="90" height="40" alt="" align="left"></a><a href="http://www.angelfire.com/ult/cmoffice/footballrumours.html"><img src="../sitepractise/Footballsection/footballrumoursbutton.gif" border="0" width="90" height="40" alt="" align="right"></a><br><br><br><br><br>
<a href="http://www.angelfire.com/ult/cmoffice/contact.html"><img src="../sitepractise/contactbutton.gif" border="0" width="90" height="40" alt="" align="left"></a><a href="http://www.angelfire.com/utl/cmoffice/footballtransfers.html"><img src="../sitepractise/Footballsection/footballtransfersbutton.gif" border="0" width="90" height="40" alt="" align="right"></a><br><br><br><br><br>



</body>
</html>

tmmoose
03-28-2003, 12:26 PM
<img src="folder you uploaded to/ cm4_logo_jpg.jpg" border="0" width="100" height="42" alt="" align="top"></a>

DCElliott
03-28-2003, 06:38 PM
You need to read up on absolute versus relative links.

Relative links are best for websites. You upload your HTML files to the root directory on the webserver. Where you put your other files is a matter of personal preference. Many folks, however, will have an /images subdirectory off their root directory for all their graphics.

So as Moose has so helpfully pointed our already, your code would look like:<img src="images/ cm4_logo_jpg.jpg" border="0" width="100" height="42" alt="" align="top" />

DE

sirarfalot
08-01-2003, 07:52 AM
to always be sure, as long as the pics are always online, i prefer to use <img src="http://www.whatever.com/folder/image.jpg">

the only downside to this is not being able to check your page while offline.