Forum Moderators: open

Message Too Old, No Replies

Images in their own folder

How do I link to an image from an outside source?

         

Margo_Lane

8:48 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



Hi,

I wish to build a site with all the images in one folder. In order to connect with one image in the folder from an outside source, do I quote the URL as below?

www.example.com/images/banner.jpg

Thank you in advance,
Margo

[edited by: tedster at 10:14 pm (utc) on Mar. 25, 2009]
[edit reason] switch to example.com [/edit]

lavazza

9:09 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



To 'hotlink' the WebmasterWorld logo:
<img src="http://www.searchengineworld.com/gfx/logo.png" 
alt="hotlinked image: WebmasterWorld LOGO"
title="Logo: WebmasterWorld">

Margo_Lane

9:31 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



I'm using an email service and, if I want to use my logo, the only option they give me for linking to it starts with "http://....". This is why I need to know if the rest of the URL would be correct. Is the /images/ part of the URL correct?

penders

9:35 pm on Mar 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is the /images/ part of the URL correct?

Probably, but it depends where your images are. Try typing the full URL of the image into the address bar of your browser. You should see the image in the browser. That is the URL you require.

Margo_Lane

9:46 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



I don't know how to do this....that's why I thought about putting all the images in an image folder. A normal URL would have .htm or .html on the end of it. What would what you're suggesting look like? Would it be www.example.com/index.html/banner.jpg?

[edited by: tedster at 10:14 pm (utc) on Mar. 25, 2009]
[edit reason] switch to example.com [/edit]

tedster

10:16 pm on Mar 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, that's exactly the idea.

Margo_Lane

10:30 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



YEAH! Thanks Tedster...it just didn't look right...should have trusted my instincts.

Margo_Lane

10:32 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



So, if I did have an images folder, would it look like this?....

www.example.com/images/banner.jpg

...or would it need an .html in there somewhere?...or does it matter.

penders

12:23 am on Mar 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



So, if I did have an images folder, would it look like this?....
www.example.com/images/banner.jpg

Yes, but always include the protocol part if referring to the absolute URL:

http://www.example.com/images/banner.jpg

You can paste this URL (yes, this is a normal URL - without a .htm or .html) into the address bar of your browser and you should see your image (if it exists).

A normal URL does not necessarily have .htm or .html - only if it is an HTML document.