Forum Moderators: open

Message Too Old, No Replies

Hyperlinking an Image

Newbie building a first Website

         

shanmuga

4:35 am on Aug 4, 2005 (gmt 0)

10+ Year Member


Hello,

I am trying to create couple of links embedded in to the image. I used the following code:

<a href="http://www.othersite.com">
<img border="0" src="http://www.mysite/images/myimage.gif" width="65" height="38">
</a>

Also tried the following code:

<a href="http://www.othersite.com">
<img border="0" src="images.mysite.com/myimage.gif" width="65" height="38">
</a> where images.mysite.com is a subdomain

Images are displayed correctly, but in both the cases the outcome is that the link automatically points to mydomain.

hxxp://www.mysite.com/www.othersite.com

And I get the obviously get the "Not found" error. Where am I making the mistake?

Dijkgraaf

4:56 am on Aug 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That problem usually happens if you haven't got the http:// in the href, but the code you are showing does have that. Are you using some WYSIWYG program? If you are, double check by looking at the source code it generates.

shanmuga

5:16 am on Aug 4, 2005 (gmt 0)

10+ Year Member



Hi,

Yes that was the missing http part, thanks for the quick help.