WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: title attribute of anchor tag

for

From: Lee, Samson (NIH/NIDCR)
Date: Feb 19, 2004 9:24AM


Yes, I'm swapping images somewhere else on the page and the link itself is
text.

-----Original Message-----
From: Paul Bohman [mailto: <EMAIL REMOVED> ]
Sent: Thursday, February 19, 2004 10:56 AM
To: <EMAIL REMOVED>
Subject: Re: title attribute of anchor tag


If you are swapping images, wouldn't you want to provide the extra info
in the alt text, rather than the title? (or are you swapping images
somewhere else on the page, and not at the link itself? e.g. is your
link really text, or is it an image?)



Lee, Samson (NIH/NIDCR) wrote:
> I have an anchor tag that has a javascript function that swaps a
particular
> image when it's mouse-overed to provide extra information. For the 508
> compliancy, I added the equivalent info in its title attribute. I think
this
> satisfies the requirement but wanted to make sure. Here's the code:
>
> <a onMouseover="swapImage('defaultImageID','','extraInfoImage.gif',1)"
> onMouseout=swapImgRestore()
> href="page.htm" title="extra info about the link" >Some Link</a>
>
> When I test this, JAWS reads the value of the title attribute ("extra info
> about the link"), but Home Page Reader reads the link name ("Some link").
Is
> this a right way to do it?


--
Paul Ryan Bohman
Web Accessibility Specialist/Project Coordinator
WebAIM (Web Accessibility in Mind)
www.webaim.org
Center for Persons with Disabilities
www.cpd.usu.edu
Utah State University
www.usu.edu



----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/


----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/