Help with JavaScript, prog forum had no replies

riddelrp

Senior member
May 19, 2001
554
0
0
I am making a menu using JS. I need to know how to do some stuff w/ text colors.

If you think you can help me PM me and I will explain my problem more "in depth"

Thanks in advance,
Ryan

PS: the software/prog forum wouldn't respond to this, so I am asking here.

mods, leniency (sp?) please.
 

riddelrp

Senior member
May 19, 2001
554
0
0
ok, my question is, how do I set the default text color inside a table cell <td></td>, you know;)

I want to set the default to a different color then the document's default and then be able to change the text color inside the cell whenever (onmouseover) the pointer is anywhere inside the cell.

Thanks in advance,
Ryan
 

Shazam

Golden Member
Dec 15, 1999
1,136
1
0
Use <td bgcolor=&quot;&quot;> to set the default bgcolor attribute. You can then use the DOM to change the bgcolor via css during the onmouseover event.
 

riddelrp

Senior member
May 19, 2001
554
0
0
thanks for all the help, but it kind of lead to another ?

how do I set the &quot;default&quot; background for text like ->this<-

I can change the bgcolor using onmouseover and I can change it to what I want the default to be using onmouseout, but I don't know how to change the bgcolor to something aside from the default color:(

Thanks,
Ryan