Results 1 to 7 of 7

Thread: Quick tooltip help

  1. #1
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default Quick tooltip help

    1) Script Title: FF1+ IE5+ Opr7+ Cool DHTML Tooltip


    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex5/dhtmltooltip.htm

    3) Describe problem: how would i add an image into the popup?

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

    Default

    You could just enter the HTML you wish to show (ie: image HTML) within the tooltip function:

    Code:
    <a href="http://yahoo.com" onMouseover="ddrivetip('Yahoo\'s Site <img src="yahoo.gif" />', 'yellow', 250)";
     onMouseout="hideddrivetip()">Yahoo</a>

  3. #3
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Its not working for me.. am i missing something?

    Code:
    <area shape="circle" coords="261,272,12" href="/chsaa/holytrinity.php" onMouseover="ddrivetip('Holy Trinity <img src="images/LIHTMAP.jpg"/>','#DFDFFF', 300)";
    onMouseout="hideddrivetip()"/>

    any ideas??


    Thanks,
    Jon
    Last edited by Jon101; 01-15-2008 at 05:18 PM.

  4. #4
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Any one???


    Sorry to bump but this is urgent.

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

    Default

    Ah, try using single quotes instead of double quotes inside your HTML content as they occur, backslashed (\'). So instead of my original code, use this instead:

    Code:
    <a href="http://yahoo.com" onMouseover="ddrivetip('Yahoo\'s Site <img src=\'yahoo.gif\' />', 'yellow', 250)";
     onMouseout="hideddrivetip()">Yahoo</a>
    I just tested this out, and it works.

  6. #6
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Let me try it out..
    Last edited by Jon101; 01-16-2008 at 02:58 PM.

  7. #7
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Works great!! Thanks!



    One more thing... would i be able to change the font within it?

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
  •