Results 1 to 3 of 3

Thread: Image w/ description tooltip

  1. #1
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Image w/ description tooltip

    I've been looking at script http://www.dynamicdrive.com/dynamici...agetooltip.htm.

    It says to place it in the head tag. Within the code it also says ...

    /* IMPORTANT: Put script after tooltip div or
    put tooltip div just before </BODY>. */

    I don't quite understand this comment. Placing the code in the head tag means the code will always be before the </body> tag anyway as the head tag appears before the body tag anyway. Could someone explain please? Thank you.

  2. #2
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    just put it in <head> tags and it will work..

    make sure your body tags are before it though?
    Hey new design new look, goto xudas for personal webdsign help.. (:

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,935
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    The confusion is the result of the fact that there were various workable ways that the script could be installed, but then it was updated. However, the demo page was never updated to reflect all of those changes properly, and that comment (which even when it was valid, was an oversimplification):

    Code:
    /* IMPORTANT: Put script after tooltip div or 
    	 put tooltip div just before </BODY>. */
    though no longer applicable in the current version (the script now creates its own tool tip division), was retained.

    To make a short story even shorter:

    1. Delete the comment.
    2. Put Step 1 in the head.
    3. Put Step 2 in the normal flow of your page, in the body section.
    - John
    ________________________

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

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
  •