alt tags
- Started
- Last post
- 10 Responses
- ross
anyone know if you can hide "alt text", while still having it there.....so users with screen readers could hear it, but one would never see it.
any help would be great
thanks
ross
- sparker0
why would you want to?
- ********0
Macromedia Flash
- ********0
otherwise using JavaScript to program audio files to play when there is no text. Search Google.com for using 'Javascript and Audio'
- jevad0
no. basically.
- Cadillac0
Browsers aren't supposed to display atl text in a tooltip--only text in the "title" attribute. You'll notice that only IE (not Mozilla, Safari, etc.) misbehaves.
Nontheless, it should be pretty simple--just have javascript read over the document and yank out any alt tags after the page has finished loading.
It would work something like this:
http://www.sovavsiti.cz/css/abbr…Read up a tiny bit on regular expressions if you need to.
- ross0
i dont want audio...
but a screen reader would read the alt tag, for say, a visually impared person...
but i dont want anyone else to see that alt text.flash cant help me here.
- Cadillac0
The method I previously mensioned may or may not work for screen readers. You'll really have to test it out.
If it doen't work...you may have to tell your visitors to get a real browser. You're aware that this is an IE-only issue, right?
- ********0
I see, haven't seen this
- sparker0
in proper standards compliant browsers, the alt text only displays if the image isn't there.
otherwise, title is the attribute that displays text in a tool-tip, like said above.
as far as the alt displaying in the markup, there isn't anything you can do about that.
- Cadillac0
I agree with sparker. Just live with the little alt tooltip--it's not that bad.