PDA

View Full Version : Cool DHTML Tooltip



ridikuloz
07-02-2005, 12:04 AM
How do I make it have a background image instead of color? Someone please email me or PM me , thanks!

jscheuer1
07-02-2005, 03:02 AM
In the script, change the two occurrences of:
backgroundColorto:
backgroundand in the style section change:
background-color: lightyellow;to:
background: lightyellow;Now you can use a url for the background image ex (in style section):
background: lightyellow url('some.jpg');In the HTML call for the tip:
<a href="http://yahoo.com" onMouseover="ddrivetip('Yahoo\'s Site', 'yellow url(\'some.jpg\')', 250)"
onMouseout="hideddrivetip()">Yahoo</a>If you want to get fancy, you can use any or all of the valid syntax for the css background property, just make sure you escape single quotes (') used within single quotes with the downslash (\) when used in the HTML part, as I have in my example.