View Full Version : Few Questions bout the DHTML Tooltip

Dakon Barton
04-17-2006, 07:57 AM
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! (http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm)

Alrighty after a post in the PHP forums (http://www.dynamicdrive.com/forums/showthread.php?t=8958) 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?

04-19-2006, 04:31 AM
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:


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:

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.

Dakon Barton
04-19-2006, 04:52 AM
well when i toss it in the php page i get
Parse error: parse error, unexpected ')' in memberlist.php on line 130

code being

echo "ddrivetip("<div class='leftcolumn'>Email:$out[email]</div><div class='rightcolumn'> MSN:$out[msnname]<br>X-Fire:$out[xfire_id]</div>",'#001018')\";