PDA

View Full Version : Cool DHTML tooltip question...



rDr4g0n
01-03-2007, 06:37 PM
1) Script Title: Cool DHTML tooltip

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm

I want to be able to change the font and font size of the tooltip text. i dont know much about scripting or using css, but i stared at the script for a while hoping to figure out what i could change, but i cant do it! im a noob lol

anyways, i imagine its something along the lines of defining a font, and font size variable in the head part of the script, then implementing it in the actual code part of the script, or doing something with css... but im also probably just making myself sound stupid now...

heres the script as it appears on teh site im setting up.

http://www.dakstudioz.com/superfriends/links.shtml

jscheuer1
01-04-2007, 06:39 AM
You can put whatever font property/value pairs you like here (example red):


#dhtmltooltip{
position: absolute;
width: 150px;
border: 2px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
font-weight:bold;
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);
}


For a listing of available font properties with links to their available values, see:

http://www.blooberry.com/indexdot/css/propindex/font.htm

or your favorite css reference.

rDr4g0n
01-04-2007, 03:25 PM
i had previously tried something similar to that and couldnt make it work, but alas, the link you posted had the info i needed!

thanks a ton, and i got it working in case anyone wants to take a peek

http://www.dakstudioz.com/superfriends/links.shtml