Results 1 to 3 of 3

Thread: Cool DHTML tooltip question...

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

    Default Cool DHTML tooltip question...

    1) Script Title: Cool DHTML tooltip

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tmltooltip.htm

    I want to be able to change the font and font size of the tooltip text. i dont know much about scripting or using css, but i stared at the script for a while hoping to figure out what i could change, but i cant do it! im a noob lol

    anyways, i imagine its something along the lines of defining a font, and font size variable in the head part of the script, then implementing it in the actual code part of the script, or doing something with css... but im also probably just making myself sound stupid now...

    heres the script as it appears on teh site im setting up.

    http://www.dakstudioz.com/superfriends/links.shtml
    Last edited by rDr4g0n; 01-03-2007 at 07:01 PM.

  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

    You can put whatever font property/value pairs you like here (example red):

    Code:
    #dhtmltooltip{
    position: absolute;
    width: 150px;
    border: 2px solid black;
    padding: 2px;
    background-color: lightyellow;
    visibility: hidden;
    font-weight:bold;
    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);
    }
    For a listing of available font properties with links to their available values, see:

    http://www.blooberry.com/indexdot/cs...index/font.htm

    or your favorite css reference.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i had previously tried something similar to that and couldnt make it work, but alas, the link you posted had the info i needed!

    thanks a ton, and i got it working in case anyone wants to take a peek

    http://www.dakstudioz.com/superfriends/links.shtml
    Last edited by rDr4g0n; 01-04-2007 at 07:41 PM.

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
  •