masteryamaha
Programmer
I wrote some javascripting for a site navigation which simply uses a onmouseover to highlight a table cell. It is embedded in the head as follows:
<!-- This is the code in the head -->
<STYLE>
.cell_over { BACKGROUND-COLOR: #000080;
link: #c0c0c0;
vlink: #c0c0c0;}
.cell_out { BACKGROUND-COLOR: #c0c0c0;
link: #ff0000;}
.cell_over1 { BACKGROUND-COLOR: #000080;
link: #c0c0c0;
vlink: #c0c0c0;}
.cell_out1 { BACKGROUND-COLOR: #c0c0c0;
link: #ff0000;}
</STYLE>
and then in the cell element (td) i have:
onmouseover="this.className='cell_over';" onmouseout="this.className='cell_out';" bgcolor="#c0c0c0"
This method works but i would like to to put it in my .css, i put the classes listed in the head in the css and didnt change anything else (besides removing the classes from the head) and this did not work. I am wondering if this is the right method and i made a spelling error in my @import line or around there, or do i need to change the java in the td. Please Help!!!
<!-- This is the code in the head -->
<STYLE>
.cell_over { BACKGROUND-COLOR: #000080;
link: #c0c0c0;
vlink: #c0c0c0;}
.cell_out { BACKGROUND-COLOR: #c0c0c0;
link: #ff0000;}
.cell_over1 { BACKGROUND-COLOR: #000080;
link: #c0c0c0;
vlink: #c0c0c0;}
.cell_out1 { BACKGROUND-COLOR: #c0c0c0;
link: #ff0000;}
</STYLE>
and then in the cell element (td) i have:
onmouseover="this.className='cell_over';" onmouseout="this.className='cell_out';" bgcolor="#c0c0c0"
This method works but i would like to to put it in my .css, i put the classes listed in the head in the css and didnt change anything else (besides removing the classes from the head) and this did not work. I am wondering if this is the right method and i made a spelling error in my @import line or around there, or do i need to change the java in the td. Please Help!!!