<%@ Page language="c#" Codebehind="WebForm7.aspx.cs" AutoEventWireup="false" Inherits="WebApplication4.WebForm7" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
 <HEAD>
  <title>WebForm7</title>
  <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
  <meta name="CODE_LANGUAGE" Content="C#">
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  <script language="javascript" type="text/javascript">
        function ChangeRadioColor(id,newcolor,oldcolor)
        {
            var rbl = document.getElementsByName(id);           
            for(var i =1;i<rbl.length;i++)
            {
                if(rbl[i].checked)
                {
                    rbl[i].parentNode.style.color=newcolor;                
                }
                else
                {
                   rbl[i].parentNode.style.color=oldcolor;         
                }
            }
        }
    </script> 
 </HEAD>
 <body MS_POSITIONING="GridLayout">
  <form id="Form1" method="post" runat="server">
   <FONT face="宋体">
    <asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 144px; POSITION: absolute; TOP: 104px" runat="server"
     Text="Button"></asp:Button>
    <asp:RadioButtonList id="RadioButtonList1" onclick="ChangeRadioColor(this.id,'blue','red');" style="Z-INDEX: 102; LEFT: 128px; POSITION: absolute; TOP: 288px"
     runat="server" ForeColor="Red" Width="80px">
     <asp:ListItem Value="1">1</asp:ListItem>
     <asp:ListItem Value="2">2</asp:ListItem>
     <asp:ListItem Value="3">3</asp:ListItem>
    </asp:RadioButtonList></FONT>
  </form>
 </body>
</HTML>