View Full Version : Tooltip II position in text

07-08-2008, 04:23 PM
1) Script Title: Cool DHTML Tooltip II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip2.htm

3) Describe problem:

I would like the text to flow 1 line after the other and the tooltip to appear when mouse is over a certain word. At the moment, when I put in the tooltip code, the word I have selected is moved to a new line.

e.g. The text should be flowing FREELY and then when anyone puts the mouse over freely, text shows up.

rather than

The text at the moment is not flowing
because the key word is moved to a new line

I think it may require a style tag with float of some kind?


07-08-2008, 06:26 PM
Please post a link to the page on your site that contains the problematic code so we can check it out.

Sounds like you missed a step in installing the script or didn't follow the instructions, though. On the demo page for the script, you don't see any of that problem there, right?

07-09-2008, 09:38 AM
site isn't hosted yet, but here is the HTML code as a txt file.

I just repasted the code and right now I am also getting a small square with a red cross on it over the tooltip box.

On the demo page they don't have this positioning problem because each keyword is on an individual line.


edit: Fixed the red cross box (forgot to save the image again)

07-09-2008, 02:22 PM
Use a span instead of a div:

<span onmouseover="ddrivetip('Explanation goes here', 250);" onmouseout="hideddrivetip();">likelihood ratio (LR).</span>

07-09-2008, 03:03 PM
perfect! Thank you very much