You can change the value of the 'className' property in IE anyway.
For example:

<html>
<head>  
        <title>untitled</title>

<style type="text/css">
  .Text  { font-family : Arial, Helvetica, sans-serif; font-size : 10pt; }
  .GrayText  { font-family : Arial, Helvetica, sans-serif; font-size : 10pt;
color : 808080; cursor : hand;}
  .BoldText  { font-family : Arial, Helvetica, sans-serif; font-size : 10pt;
font-weight : bold; }
</style>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">

function changeClass(elementName, thisIndex){
        var da = document.all;
        var thisRadio = eval('document.forms[0].' + elementName + '[' +
thisIndex + ']');
        if (thisIndex == '0') {
                eval('da.r2' + elementName + '.className =' + '"' +
'GrayText' + '"');
                eval('da.r1' + elementName + '.className =' + '"' + 'Text' +
'"');
        } else {
                eval('da.r1' + elementName + '.className =' + '"' +
'GrayText' + '"');
                eval('da.r2' + elementName + '.className =' + '"' + 'Text' +
'"');
        }
        thisRadio.checked = true;
}
</SCRIPT>
</head>

<body>
<form action="" method="POST">

<table>
  <tr> 
    <td class="boldtext">First Name:</td>
    <td><input type="radio" name="FirstName" value="SomeValue"
onClick="changeClass('FirstName','0');"></td>
    <td><span class="Graytext" id="r1FirstName"
onClick="changeClass('FirstName','0');">SomeValue</span></td>
    <td><input type="radio" name="FirstName" value="SomeOtherValue" checked
onClick="changeClass('FirstName','1');"></td>
    <td><span class="Text" id="r2FirstName"
onClick="changeClass('FirstName','1');">SomeOtherValue</span></td>
  </tr>
</table>

</form>
</body>
</html>


-----Original Message-----
From: stas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 2:39 PM
To: CF-Talk
Subject: OT: JS/CSS question


Hello,

How can I swap a style on an a mousover even? I know I can do this:

<td onMouseOver = "this.style.color = 'black'">

but I'd like to just change to a different style class definition instead of
explicitaly listing ever property.

Thanks!
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!      Instant Activation for $99/month w/Free 
Setup from SoloServer      PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support     
 Visit SoloServer, https://secure.irides.com/clientsetup.cfm.

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists