View Full Version : DHTML tooltip

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


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

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

Code taken from Tooltip page:

<style type="text/css">

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);


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

04-10-2006, 09:42 PM

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.