1) Script Title: DHTML tooltip script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
3) Describe problem: I would like to control the appearance of each line in the popup. When I try to include styling, the tip is displayed on the page, as opposed to a popup. Here is an example of what I am trying to do:When I refresh the page, it displaysPHP Code:$color = '#00ff00';
$width = 300;
$contents = '<span style="color:red;">Line 1</span>';
$contents .= '<span style="color:white;">Line 2</span>';
$contents .= '<span style="color:blue;">Line 3</span>';
<td><?php echo '<a onMouseover="ddrivetip(\'' . $contents . '\',\'' . $color . '\',\'' . $width . '\' )"; onMouseout="hideddrivetip()"href="' . $file_name . '" target="_blank">' . $file_name . '</a>'; ?></td>So it seems the <> are getting lost. Am I doing something wrong or is this not possible? For what its worth, I can use <font></font> to change the font size and it works fine.PHP Code:Line 1Line 2Line 3','#00ff00','' )"; onMouseout="hideddrivetip()"href="" target="_blank">



Reply With Quote


Bookmarks