View Full Version : TD with changing background
freddybee
12-15-2002, 11:13 PM
That is a newbie question but I don't remeber how to change the background (url) property of a TD in a TABLE onmouseover and onmouseout ...
Any recall ???:D
Skyzyx
12-16-2002, 02:00 AM
This should do it.
...
<td bgcolor="#FFFFFF" onMouseover="this.style.background='#FFFFCC';" onMouseout="this.style.background='#FFFFFF';"
Blah
</td>
...
freddybee
12-16-2002, 08:10 AM
Thank you SkyZyx,
Nevertheless I meant an image background not only a color :D
Any idea ?
kwhubby
12-16-2002, 08:41 AM
change it from #FFFFCC to your image, this should do it, It might not though.
glenngv
12-16-2002, 08:52 AM
<td
onMouseover="this.style.backgroundImage='url(over.gif)';"
onMouseout="this.style.backgroundImage='url(out.gif)';">
Blah
</td>
If that doesn't work, try:
<td
onMouseover="this.style.backgroundImage='url(\'over.gif\')';"
onMouseout="this.style.backgroundImage='url(\'out.gif\')';">
Blah
</td>
freddybee
12-17-2002, 12:19 AM
Thank you very much.... that is exactly what I did expect
Perfect answer :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.