Page is a not externally linkable
- WebmasterWorld
-- Accessibility and Usability
---- Alt Attribute


DrDoc - 8:50 pm on Mar 5, 2007 (gmt 0)


Without changing your markup for those pesky linked images ...

<a title="Description of Link Destination" href="/widgets/file.htm"><img src="/widgets/images/file.gif" alt="Description of Widget Image"></a> 
<!--[if lte IE 7]>
<script type="text/javascript">
img = document.images;
for(i = 0; i < img.length; i++) {
elem = document.images[i];
if(elem.title == '' && elem.parentNode.tagName == 'A') {
elem.title = elem.parentNode.title;
}
}
</script>
<![endif]-->

In IE only -- if you have an image without an explicit title attribute, it will use that of the surrounding link.


Thread source:: http://www.webmasterworld.com/accessibility_usability/3252877.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com