ALT text on text links not just image links?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
MattSharp
Forum Commoner
Posts: 62
Joined: Wed Apr 24, 2002 2:25 pm

ALT text on text links not just image links?

Post by MattSharp »

when you put your mouse over an image that is a link (such as the smilies to the left) text shows up. I know there is a way to do this for a text link as well but I cannot remember how. Is it JavaScript or is there something easier?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Much easier than JavaScript, just use the title attribute:

Code: Select all

<a href="page.php" title="This is what you see when you rollover the link">text</a>
Mac
Post Reply