Alt-like popup text in an anchor tag?

liunx

Guest
As a web editor, I'm looking for ways to make hyperlinked footnotes on lengthy documents appear to the user as popup text, like the ALT attribute does on images. The only action I want from the A tag is to make text pop up on the screen. (BTW I have figured out that setting the href to #null eliminates the linking action.) I realize that ALT is not a valid attribute of the A tag, but my colleagues want me to find a way to make this happen using just HTML and not JavaScript [because they are all to lazy to learn it and they think it would be too much typing besides.] We use a proprietary text/WYSIWYG editor created by our boss, so anything involving Dreamweaver or Frontpage is off the table.<br />
<br />
Any suggestions?<!--content-->Open your page in that fantastic web editor known as notepad, and where you have your hyperlink,<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"somewhere.htm">link</a><br />
modify it to<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"somewhere.htm" title="hello">link</a><br />
<br />
at least, I think that's what you want.<!--content-->1) The "alt" attribute isn't supposed to give you one of those pop up things that are called tool tips. That's one of those MSIE bad things. The "alt" attribute specifies an alternative text to be displayed when the image isn't displayed. Say on a Braille or audio browser.<br />
<br />
2) If you did manage to do this with JavaScript then it wouldn't work for the 13% of users who do not use JavaScript.<br />
<br />
3) The "title" attribute was designed for just this application and you can use it with most every element.<!--content-->Thanks. The title attribute worked for the context I wanted.<br />
I also did not realize that the mouseover "tooltip" action for alt text in displayable images was a Microsoft quirk. Thanks for the additional info.<!--content-->
 
Back
Top