Results 1 to 5 of 5

Thread: Tooltip II position in text

  1. #1
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tooltip II position in text

    1) Script Title: Cool DHTML Tooltip II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...mltooltip2.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
    FREELY
    because the key word is moved to a new line

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

    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

    Thanks

    edit: Fixed the red cross box (forgot to save the image again)
    Last edited by browser; 07-09-2008 at 09:54 AM.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use a span instead of a div:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    perfect! Thank you very much

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •