/    Sign up×
Community /Pin to ProfileBookmark

On Hover description?

Hey guys,

I was wondering, how you would make it so that if you were to hover over a link, it would show it a little bordered box some text, like a description right over it when you hover over it.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@ZeroKilledMay 09.2008 — html allow you to set a tooltip for every element. the attribute is [b]title[/b]:
[code=html]
<a ... title='description here'>link</a>[/code]

however, this feature isn't customizable. you can build a js code to do 'tooltip', but in reality isn't a tooltip, they are html element positioned over the link and dynamically displayed with the aid of javascript. can't point you to a sample because never had done one.

also, for semantic purpose, i prefer to use the [b]title[/b] attribute no matter if it isn't customizable. also, be aware that the [b]title[/b] attribute work even if javascript is disabled. as i had said before, it is an html feature. you make the choice.
Copy linkTweet thisAlerts:
@super4novaauthorMay 10.2008 — It works, but how do I make it so it shows all of it, because my text was so long it just stopped with a "..."
Copy linkTweet thisAlerts:
@ZeroKilledMay 10.2008 — sorry, can't help with that. i mean, i had never seen a solution for that. maybe is a browser setting or a html standard that only allow a maximun number of characters. don't know. in this case, maybe you are more interested on javascript tooltip.
×

Success!

Help @super4nova spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...