PDA

View Full Version : DHTML tooltip



SteveK
04-10-2006, 06:21 PM
How do I:
-Assign a font to the code (the pop up window now defaults to times new roman; I'd like to use Arial)

-Assign a background color to the "box"

-Assign font color

thanks

Link: http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm

NXArmada
04-10-2006, 06:53 PM
Change the STYLESHEET.

Code taken from Tooltip page:



<style type="text/css">

#dhtmltooltip{
position: absolute;
width: 150px;
border: 2px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
/*Remove below line to remove shadow. Below line should always appear last within this CSS*/
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}

</style>


Use font-family: <font name>; to change the font
Use color: <color>; to change font color

background-color: lightyellow; controls the color of the background for the box

ddadmin
04-10-2006, 09:42 PM
Steve:

Warning: In the future, please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.