Linking an image to more then one place

Discussion in 'HTML & Website Design' started by bthomas312, Mar 24, 2011.

  1. #1
    I am trying to link an image to more then one place and the image is sized with percentage so an image map will not work does anyone know another way?
     
    bthomas312, Mar 24, 2011 IP
  2. extremike

    extremike Peon

    Messages:
    44
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Perhaps slice the image up into multiple parts (e.g in Photoshop) and output as HTML? This is the old-skool way of building a website from a PSD file but I can't see whay it wouldn't work with a single image. The resulting output would be multiple, smaller images situated in a table - this would still look like a single image to the user but you could link each of the smaller images to wherever you want. Not sure how this would be affected by the % sizing though.
     
    extremike, Mar 24, 2011 IP
  3. bthomas312

    bthomas312 Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah i would do it that way but on a mobile phone the images don't all load on the page unless they are just one image, I don't know why that is either.
     
    bthomas312, Mar 24, 2011 IP
  4. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you can overlay the image with a-tags, or divs with a tags in them, and size them all with percentage. Set the a tags to display block or inline-block and then just set the width, height and position on top of the underlying image in the desired positions. Oh, and make the a tags (or divs with a tags in them) transparent.
    This will create invisible links with set sizes, that will be transparent so you will think that you're clicking the underlying image. A "bogus" image map kinda thing.
     
    style0, Mar 24, 2011 IP