Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image link on iPhone is not clickable

I have a signature that is used in outlook. The signature has an image at the bottom and a link that encompasses the image. On the computers you are able to click on the image and taken to the link while on the iPhone it asks you to save image, or copy or cancel. On occasion I have noticed it to work but have not been able to determine when it does link and when it asks to copy the image.

The code is the relevant code for the image/link

    <table>
    <tr>
        <td>
            <span style="font-size: 10pt; font-family: Calibri">
                <br/>
                <!-- begin ad tag -->
                <a href="LINK" target="_blank">
                <img src="IMAGE" border="0" alt="" /></a>
                <!-- end ad tag -->
            </span>
        </td>
    </tr>
    </table>

Edit 1: Just testing some more, if I go into the web browser on the IPhone and then back into the mail and click the image it goes to the link without prompting to save the image.

Edit 2: Edit 1 works only on the iphone 4 version 5.1 (does not work on 4S have not tested others). Also works on ipad 3 version 5.1

Edit 3: Also does not work on 3g iphone either version 5.1 I am going to mark this up as an iphone issue and say jme1988 is correct unless someone comes up with something else.

Thank you for your help

like image 946
Joshua Avatar asked May 08 '12 15:05

Joshua


People also ask

How do I make a link clickable on my iPhone?

Add a link. Tap an object, text box, or selected text you want to turn into a link, then tap Link. to see Link. Tap Link To and choose a link type (Webpage, Email, Phone Number, Page, or Bookmark).

Why is my link not clickable?

Most likely problems with opening hyperlinks are connected with either the security restrictions of your Internet browser that doesn't allow opening pop-up windows, or with your Flash player plug-in that prevents you from opening URLs in local Flash files.

Can you hyperlink a photo on iPhone?

Tap the photo you want to link to. If you want to share a link to several photos, tap Select in the upper right corner of the screen and tap the photos you want to include. Next, tap the Share Sheet button at the lower left corner of the screen. Tap the Copy Link button in the third row of the Share Sheet.


2 Answers

You have to use the map tags to make it work. Here's an example using a facebook picture linking to facebook using map:

<img src="http://cdn2.iconfinder.com/data/icons/web2/Icons/FaceBook_128x128.png" alt="Facbook" usemap="#facebook" />

 <map name="facebook">
   <area shape="rect" coords="0,0,128,128" href="http://www.facebook.com" alt="Facebook" />
 </map> 

If you aren't familiar with this, try pasting the code in an .html document and check it out (should work). Typically you put the "mappings" just before </body> .

On the coords arguement, you should use x1,y1,x2,y2 plotting. What this means is that you want map a rectangular image from the top-left to the bottom-right of the size of the image. This appears to work on the 3G version.

like image 170
Chad Harrison Avatar answered Oct 05 '22 07:10

Chad Harrison


I actually found a solution that works on iOS 6.1.2 as well as desktop Apple Mail (6.0):

Combine the above approaches:

<a href="http://foo">
  <img src="http://bar" usemap="linkmap" alt="Click me" title="Click me"/>
  <map name="linkmap">
    <area shape="rect" coords="0,0,80,80" href="http://foo" alt="Click me" />
  </map>
</a>
like image 21
Justin Cherniak Avatar answered Oct 05 '22 06:10

Justin Cherniak