New OOTS products from CafePress
New OOTS t-shirts, ornaments, mugs, bags, and more
Results 1 to 7 of 7
  1. - Top - End - #1
    Ogre in the Playground
    Join Date
    Nov 2006

    Default HTML Within an Image

    Okay, my addled mind can no longer remember the coding required to place a link within an image... so that when you click the picture, the link pops up. Anyone care to refresh my memory? I don't feel like Googling it.

  2. - Top - End - #2
    Troll in the Playground
     
    Jack Squat's Avatar

    Join Date
    Jan 2006
    Location
    Knoxville, TN
    Gender
    Male

    Default Re: HTML Within an Image

    Quote Originally Posted by Neftren View Post
    Okay, my addled mind can no longer remember the coding required to place a link within an image... so that when you click the picture, the link pops up. Anyone care to refresh my memory? I don't feel like Googling it.
    well, this board doesn't use HTML, but the code you need is

    [url=your link][img]your image[/img][/url]

  3. - Top - End - #3
    Ogre in the Playground
    Join Date
    Nov 2006

    Default Re: HTML Within an Image

    Quote Originally Posted by Jack Squat View Post
    well, this board doesn't use HTML, but the code you need is

    [url=your link][img]your image[/img][/url]
    the vB forum script is based off HTML. Literally character for character. Just swap out the brackets with greater and less than signs. But thank you.

  4. - Top - End - #4
    Orc in the Playground
     
    GnomeWizardGuy

    Join Date
    Nov 2006
    Location
    Rotated 90° counterclockwise
    Gender
    Male

    Default Re: HTML Within an Image

    Quote Originally Posted by Neftren View Post
    the vB forum script is based off HTML. Literally character for character. Just swap out the brackets with greater and less than signs. But thank you.
    Firstly, it's called BBCode, and secondly, HTML doesn't have a URL tag, non-empty IMG tags, LIST tags with items denoted with <*>, QUOTE tags, SPOILER tags, EMAIL tags, or any of the other conveniences & simplifications of BBCode (which, conversely, is also lacking in a large number of HTML tags).
    [/delusional ravings]

  5. - Top - End - #5
    Firbolg in the Playground
     
    Kobold

    Join Date
    Aug 2007
    Gender
    Male

    Default Re: HTML Within an Image

    for HTML it is:

    <a href="link"> <img src="image location"> </a>

    Note that the middle part can be substituted with words, like LINK, Home, stuff like that without <>

    At least, that is how I remember the HTML code...
    Last edited by Bayar; 2008-03-03 at 03:02 AM.
    **** Photobucket ; RIP avatars

  6. - Top - End - #6
    Ogre in the Playground
    Join Date
    Nov 2006

    Default Re: HTML Within an Image

    Quote Originally Posted by bayar View Post
    for HTML it is:

    <a href="link"> <img src="image location"> </a>

    Note that the middle part can be substituted with words, like LINK, Home, stuff like that without <>

    At least, that is how I remember the HTML code...
    Finally, someone who is helpful. Thank you bayar, that's exactly how I remembered it... except I kept dropping "src" which ended up bugging the whole line when I was writing up my website. Thanks!

    And Guildorn, please learn to read carefully. I said it was [I]based[/] off it, not the same. If it was the same, then people would be using < and > not [ and ]. Thank you.

  7. - Top - End - #7
    Miniature Giant Space Hamster in the Playground Administrator
     
    Rawhide's Avatar

    Join Date
    Sep 2005
    Location
    Australia
    Gender
    Male

    Default Re: HTML Within an Image

    Firstly, HTML and bbCode are completely different, simply swapping the brackets or greater than and less than signs will not work. ie. the code for an image in bbCode is [img]image.url[/img], but the html required for an image is <img src="image.url">

    The thread was in the wrong forum, this forum is for issues you are having with the local board or the site.

    This would have been much quicker and easier had it been Googled. Here's a very helpful site: www.htmlcodetutorial.com

    Not only has the original question been answered, but I'm not fond of some of the replies, so I'm going to lock this thread now.

    "My Hobby: Replacing your soap with gravy" by rtg0922, Doll and Clint "Rawhide" Eastwood by Sneak

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •