PDA

View Full Version : Cool DHTML Tooltip



fredza801
05-20-2006, 06:38 PM
Hello,

I use this code, I want "colorize" the first line ("miche de pain" here) in my tooltip and this doesn't work.
Can you help me to understand this.

Thanks in advance

<td width="24" height="24"><img src="food_17.png" width="24" height="24" onmouseover="ddrivetip('<class = \"whitename\"> miche de pain</class> <br /> <b>Niveau requis : </b> <br /> <b>Talent requis : </b> <br /><br /> ','black', 300)" onmouseout="hideddrivetip()" /></td>

Of course I define class name between <head> and </head>
<style type="text/css">
.greyname {color: #9d9d9d; }
.whitename {color: #FFFFFF;}
</style>

jscheuer1
05-20-2006, 07:13 PM
Try:


ddrivetip('<span class=\'whitename\'> miche de pain</span> <br /> <b>Niveau requis : </b> <br /> <b>Talent requis : </b> <br /><br /> ','black', 300)