PDA

View Full Version : linking a image


collie
02-04-2006, 01:47 AM
I have two websites that are hoasted by two different host.
I would like to put a URL from one site to go and retrive an image from the other site and would like to know how to write the URL?
would it be like this
SAMPLE: www.xxxsite.html/folder.html/image/xxxx.gif
thanks:rolleyes:

mlseim
02-04-2006, 05:22 AM
<img src="http://www.yoursite.com/image.gif">

or if you want it to be a link ...

<a href="http://www.yoursite.com"><img src="http://www.yoursite.com/image.gif" border="0"></a>

You don't need the .html part, but you do need to know if the
image is in a subdirectory or not (the "path" to the image).

Linking or taking images from other sites is not recommended.
This is what you call "bandwidth stealing". If it's your own sites,
do what you want ... but don't link to images on someone else's site.

Copy the image to your own site.

oracleguy
02-04-2006, 08:08 PM
And if you do have the content on a different host under a different domain, if the site that the image(s) are on goes down, they will fail to load when people visit the other site.