Making image serve as a link

Discussion in 'Mac Basics and Help' started by Aniej, Feb 21, 2007.

  1. Aniej macrumors 68000

    Aniej

    Joined:
    Oct 17, 2006
    #1
    I think this is probably pretty basic for experienced web designers, but how would I go about making an image clickable as if it were a text link so that when it is selected it directs the user to the desired location?
     
  2. dpaanlka macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #2
    Well, find your <img> code, and before it type <a href="URL you want to go to"> and after it type </a>

    You might also want to put border="0" into the inside of the <img> tag, so it would be:

    <img src="blah.jpg" border="0">
     
  3. Aniej thread starter macrumors 68000

    Aniej

    Joined:
    Oct 17, 2006
    #3
    Opps ok I clearly left an important part out, I don't know anything about programing. So if you have the time and want to explain it to me I would really appreciate it. I am including the image I have and the website link I wanted to link it to.

    This is the link I wanted to use: http://video.nbc10.com/player/?id=63526
     

    Attached Files:

  4. panoz7 macrumors 6502a

    panoz7

    Joined:
    Nov 21, 2005
    Location:
    Raleigh, NC
    #4
    I assume that you're trying to do this on a webpage with html. It sounds as if you might be a little out of your league trying to hand code it though. Anyway here's the code you need for that image:

    <a href='http://videwo.nbc.com/player/?id=63526'><img src='blah.jpg' border='0'></a>

    blah.jpg needs to be the address of your image.

    EDIT: It just occurred to me that you might be trying to create a link on this forum. If that's the case that code won't work... let us know if we misunderstood you.
     
  5. emw macrumors G4

    emw

    Joined:
    Aug 2, 2004
    #5
    So you're looking to do this?

    [​IMG]

    Here's the code for it:

    [URL="http://video.nbc10.com/player/?id=63526"][IMG]http://www.mremw.com/MR_Images/Milton%20Street.jpg[/IMG][/URL]

    Note that the html code will be different (see above) but the idea is the same.
     

Share This Page