- From: Steve H <steveftc@hotmail.com>
 - Date: Sat, 29 Mar 2003 23:02:42 -0500 (EST)
 - To: www-style@w3.org
 
Hey Jonathan,
You need to access the object whose style you're changing, instead of trying 
to access the class. I've gotten this to work:
<style>
.classOne{color:green;}
</style>
<script>
function changeIt(obj)\
{
obj.style.color = "red";
}
</script>
<table>
<tr>
<td id="objectOne" class="classOne" 
onMouseOver="changeIt(this)">something</td>
</tr>
</table>
Let me know if you have any problems, questions, etc..
~Steve
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail
Received on Monday, 31 March 2003 07:18:02 UTC