Results 1 to 3 of 3

Thread: DHTML tooltip

  1. #1
    Join Date
    Apr 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation DHTML tooltip

    How do I:
    -Assign a font to the code (the pop up window now defaults to times new roman; I'd like to use Arial)

    -Assign a background color to the "box"

    -Assign font color

    thanks

    Link: http://www.dynamicdrive.com/dynamici...tmltooltip.htm
    Last edited by ddadmin; 04-10-2006 at 09:43 PM.

  2. #2
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default

    Change the STYLESHEET.

    Code taken from Tooltip page:

    Code:
    <style type="text/css">
    
    #dhtmltooltip{
    position: absolute;
    width: 150px;
    border: 2px solid black;
    padding: 2px;
    background-color: lightyellow;
    visibility: hidden;
    z-index: 100;
    /*Remove below line to remove shadow. Below line should always appear last within this CSS*/
    filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
    }
    
    </style>
    Use font-family: <font name>; to change the font
    Use color: <color>; to change font color

    background-color: lightyellow; controls the color of the background for the box
    Last edited by jscheuer1; 07-22-2012 at 02:24 AM. Reason: correction

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Steve:

    Warning: In the future, please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

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
  •