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

Tooltips javascript which shows images?

Status
Not open for further replies.

ff

Programmer
Jun 24, 2001
4
CA
Is there a Tooltips javascript which shows both text and images when pointing the cursor over a link?
Thanks a lot!
Fabio

International Job Links
 
Yes, but ou need to make them from scratch yourself, so you need to use a div, or span to use for hiding and showing - and positioned absolutely.

Then you need to enable mousemove when the mouse is over the link or whatever, that is unless you just want it to pop up i one place and not follow the mouse. And then hide it again onmouseout.

This invloves getting the mouse cursor position, which is easy enough - the only trap can be if you don't allow for the scroll position (element.scrollTop) - so make sure you allow for this - otherwise depending on where the page is on the scrollbar - the tooltips will be in the completely wrong place.
b[sup]2[/sup] - benbiddington@surf4nix.com
 
Thank you for your reply. I am not an expert of scripting. I was wandering whether there is a free javascript already available. Do you think that the one available at this URL is the one I am looking for? Can it show both text and images?
Thank you!!!
Fabio

International Job Links
 
here is one that will show text and images (I think. I have never tried)


its called "popup descriptions", and since it uses a div to position the tooltip, you could theoritically put an image in the div.


but then, what if you put an ALT="..." on the image. then, you move your mouse ove the link, get the description, and move your mouse over the image. then you would have a description inside a description. LOL just kidding




theEclipse
eclipse_web@hotmail.com
**\\||It was recently discovered that research causes cancer in rats||//**
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top