Jump to content

Extra information on links.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
k4m1k4z1

k4m1k4z1

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
Recently i have been seeing alot of websites that give a little snippet of text under the link that you are hovering over so you get extra information when you are hovering over the link. What css code is used to do this, i learned how to do it before but i forgot.

Help is hugely appreciated. :)

Sorry for the poor quality of picture. :( but i think you guys will understand on what i am looking for here. You can click it to get a bigger view.

[ATTACH]3219[/ATTACH]

Attached Files



#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
This is just HTML, an example:
<a href="register.php" title="Click here to register on our site!">register</a>
Will display this when hovering over:
Posted Image

The title attribute will bring a title to an image tag, and the alt attribute (alt="") will display text if images are turned off, or an image cannot be displayed.

EDIT: I can't see to well, but if there's styling added to it, it uses JS to style (through onHover) not CSS:
JS-ToolTip - a JavaScript tooltip generator

The example on that site should fit better.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.