W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2002

RE: Creative (?) solution for redundant links

From: Mike Scott <mscott2@msfw.com>
Date: Mon, 11 Mar 2002 14:20:21 -0600
To: "'WAI \(E-mail\)'" <w3c-wai-ig@w3.org>
Message-ID: <000601c1c93a$2e8be210$0b00000a@mikes>
For what it's worth, see a hypothetical example at
http://www.msfw.com/test/imagetextlinktest.html
(Borrowing form the real-world example at http://www.ibm.com )

-----Original Message-----

  On Mon, 11 Mar 2002, Mike Scott wrote:

    We've talked a few times about the problems of the common "image
    followed by text" link situation -- in particular, that we may want
to
    allow sighted users to click on either the image or text, but we'd
    rather avoid making screen reader users hear the same link text
  repeated
    twice (the image's alt text followed by the text link).

    What if we did something like this (HTML code follows):

    <img src="image.gif" alt=""
  onclick="document.location='newpage.html';">
    <a href="newpage.html">Link Text</a>

    (i.e., use a javascript "onclick" on the image to load the new page
if
    the image is clicked.)

    The image alt wouldn't show up in a screen reader's links list, and
  with
    alt = null, it wouldn't be read; at the same time, if a sighted user
    (whose browser supported javascript) clicked on the image, it would
  act
    as if it were a link. Without javascript, clicking the image would
    simply do nothing, but the text link would still work.

    Of course, this scenario would only apply if the image and the text
  link
    were exactly redundant, and when the layout of the page was
preventing
    us from simply putting a single link element around both.

    Thoughts???

    Mike
Received on Monday, 11 March 2002 15:20:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:01 GMT