Results 1 to 2 of 2

Thread: Cool DHTML Tooltip

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

    Default Cool DHTML Tooltip

    How do I make it have a background image instead of color? Someone please email me or PM me , thanks!

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

    Default

    In the script, change the two occurrences of:
    Code:
    backgroundColor
    to:
    Code:
    background
    and in the style section change:
    Code:
    background-color: lightyellow;
    to:
    Code:
    background: lightyellow;
    Now you can use a url for the background image ex (in style section):
    Code:
    background: lightyellow url('some.jpg');
    In the HTML call for the tip:
    Code:
    <a href="http://yahoo.com" onMouseover="ddrivetip('Yahoo\'s Site', 'yellow url(\'some.jpg\')', 250)"
     onMouseout="hideddrivetip()">Yahoo</a>
    If you want to get fancy, you can use any or all of the valid syntax for the css background property, just make sure you escape single quotes (') used within single quotes with the downslash (\) when used in the HTML part, as I have in my example.
    - 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
  •