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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text pop-up

Status
Not open for further replies.

pichi

Programmer
Nov 12, 2000
156
EC
hi everybody, does anybody know how to make a text pop-up appears when the mouse is over some text??
i want that the user move to the text and obviusly using the onmouseover event show a little text pop-up explainig something about the text, can anybody help me please??

Pichi
 
Hi Pichi

when you say text pop-up what do you mean exactly? like a tooltip sort of thing or an alert box?

basically this give you an alert pop-up when you rollover. you need to add some CSS and CSS-positioning styles for a tooltip look.

<div id=&quot;test&quot; onmouseover=&quot;javascript:alert('hey!');&quot;>Rollover me</div>
 
Hi Pichi!

You need to add a TITLE attribute to a text link. Yes, a link - you can't do it with ordinary text!
Here's an example:

<a href=&quot;something.html&quot; title=&quot;it's a hint&quot;>text with hint</a>

It works in: IE5 (can't check in IE4), Netscape6 and Opera5.
Remember: it doesn't work in NN4.x!

Andrew | starway@mail.com
 
ok thanks but do you know a way to do tjis in NN4.x??

thanks anyway

pichi

PD: xor i want to show a tooltip, like Andrew explain me!!
 
Sorry, Pichi!
As I said, it cannot be done in NN4.x. Javascript function called by onMouseOver event also don't work there. You have to live with it.
May I ask you, what for do you need it? For me it doesn't seem to have any sence to add hints to text links.

Andrew | starway@mail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top