Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tooltip hint box !! 1

Status
Not open for further replies.

puteri

Programmer
Joined
Apr 15, 2003
Messages
9
Location
MY
hi...

just want to know from the experts out there, is there any other way to show our tooltip box or hint box on our text in html page without using any link or no <a href=""></a> at all.

just a plain text but when we mouse over the text it will display a hint box or tooltip box.

thanks in advance !
 
Yes - give the surrounding element a "title" attribute:

Code:
<p title="This is a paragraph of Lorum Ipsum text">Lorum ipsum dolor sit amet</p>

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Incidentally, this will work for most elements, so even if your text is in a different element type (for example, span, div, etc), then this will still work.

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
well, thanks Dan , its works !! :)
by the way how about my other question about the automatic calculation date ;-)
any idea ?? thanks again.
 
by the way how about my other question about the automatic calculation date
Best to stick each question in a seperate thread - for clarity at the very least... unless one relates to the other (in a problem/solution sense) of course.

Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top