RE: Creative (?) solution for redundant links

> > Don't like it I'm affraid. From a visually impared point of view I
> would
> > simply think that the page creator had forgotten to alt tag the image.
> There
> > is no way for me to know that the two links are actually the same. I
> would
> > just see the cursor change to a hand indicating a link but no hover
> text
> > which I rely on when using images as links.
>
> > <img src="image.gif" alt=""
> onclick="document.location='newpage.html';">
> > <a href="newpage.html">Link Text</a>
>
> This would not cause the cursor to change to a hand in any current
> browser/AT I know of, certainly future AT's would hopefully make
> available the fact an onclick existed on the image.

Somewhat better is:

.pseudoLink{cursor: pointer;}

<img src="image.gif" alt="" title="Link Text(or similar)" class="pseudoLink"
onclick="location='newpage.html';"><a href="newpage.html">Link Text</a>

You may wish to do something to deal with IE4 and IE5 using the non-standard
"hand" value for that cursor rather than the standard pointer (which
thankfully IE6 supports).

My suggestion isn't ideal, but would be an improvement on the above in
providing toolTip and hand-shaped cursor.

Received on Monday, 11 March 2002 12:38:27 UTC