<script type="text/javascript" src="javascript/jquery-1.2.1.js"></script> <script type="text/javascript" src="javascript/functtions.js"></script> <link rel="stylesheet" type="text/css" href="css/styles.css"></link> <title>Untitled Document</title> </head> <body> <div class="TableOne"> <table onmouseover="swap();" onmouseout="swap();"> <tr> <th><a href="#" onMouseOver="swap();" onMouseOut="swap();">гостевая</a></th> <th><a href="#">гостевая</a></th> <th><a href="#">гостевая</a></th> <th><a href="#">гостевая</a></th> </tr> </table> </div> функция swap function swap() { $('tr > th').toggleClass('striped'); } меняет background-color но color не работает .striped { background-color:#FFFFFF; color:#00cc33; }