Forums

This topic is locked

Those cool comments...

Posted 28 Oct 2002 11:29:49
1
has voted
28 Oct 2002 11:29:49 Adam Hussain posted:
I came across this site a few weeks ago where they had a set of links in a table. Now everytime you went over the link with the cursor, a little comment or description box would appear, it's not like the ALT tag in HTML images, this description or comment box was really styled. I was wondering if anyone else new how to do this?

Replies

Replied 28 Oct 2002 16:08:23
28 Oct 2002 16:08:23 Ned Frankly replied:
They're called ToolTips, and are accomplished using DHTML. An extension was available for UD, but I don't know if it's been converted for MX.

Basically, when your page is loaded, a bunch of hidden layers are created representing all of the tooltips. As you hover over a link, an onMouseOver event causes the appropriate hidden layer to become visible at the location of your mouse. onMouseOut, that layer is hidden again.

In DMX, you could use the Show Popup Menu behavior, although you'll have to do some manual tweaking to make it work with a text link. The behavior will only 'apply' to an image, not a text link, so you'll have to add a dummy image, apply the behavior, then go into code view and move the 'onMouse...' events to your text link.

I did find a neat little tool at a hosting company that will construct the code for you. Check out host-biz.com/tooltips.html. I have absolutely no knowledge of this company other than the fact that they come up first on a search for DHTML tool tips in Google.

Ned Frankly

Reply to this topic