Results 1 to 3 of 3

Thread: Few Questions bout the DHTML Tooltip

  1. #1
    Join Date
    Apr 2006
    Location
    Waco,Tx
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs down Few Questions bout the DHTML Tooltip

    Aight first off excellent script, just needing a few umm tips where/how to get it as im needing

    Secondly link to what im talking bout Click Me!

    Alrighty after a post in the PHP forums about how to get it to work with a php script i finaly got that sorted, but now im wondering if its possible to get the mouseover part of this script to look like this


    what im aiming for is a sorta dynamic mouseover thus the php/mysql integration any ideas if the 2 column thing is possible?

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

    Default

    Well theoretically sure, but the trouble I see is the rather messy HTML you'll have to use to get the tooltip to look that way:

    Code:
    ddrivetip('TEXT TO DISPLAY', 'OPTIONAL BACKGROUND COLOR', OPTIONAL TIP WIDTH)
    Mainly, replacing "TEXT TO DISPLAY" with the desired HTML content. To cut down on the HTML mess, I guess one obvious route is to use CSS in combination, something like:

    Code:
    ddrivetip("<div class='leftcolumn'>Left column stuff here</div><div class='rightcolumn'>Right column stuff here</div>", 'OPTIONAL BACKGROUND COLOR', OPTIONAL TIP WIDTH)
    where "leftcolumn" and "rightcolumn" would be two CSS classes that create the 2 column look you want. Still, it's not pretty.

  3. #3
    Join Date
    Apr 2006
    Location
    Waco,Tx
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well when i toss it in the php page i get
    Parse error: parse error, unexpected ')' in memberlist.php on line 130
    code being
    Code:
    (
    echo "ddrivetip("<div class='leftcolumn'>Email:$out[email]</div><div class='rightcolumn'> MSN:$out[msnname]<br>X-Fire:$out[xfire_id]</div>",'#001018')\";
    onMouseout=\"hideddrivetip()\">$out[name]</div>";
    }
    ?>
    Last edited by Dakon Barton; 04-19-2006 at 05:13 AM.

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
  •