Como eu faço para pegar (manipular) os valores de uma matriz (array) de botão tipo "radio" usando VBScript?
tentei conforme abaixo, mas não funciona :(
Sub optCor_OnClick(index as integer)
msgbox "oi"
End Sub <html>
<head>
<title>Pegar valores de botão radio e mudar cor de elementos</title>
<script language="VBScript">
Sub btnTeste_OnClick()
msgbox "oi"
End Sub Sub optCor_OnClick(index as integer)
msgbox "oi"
End Sub </script>
</head>
<body>
<p>
<fieldset id="fldCores" title="ol aolal lllll" style="width: 300px;">
<legend align="left">Cores</legend>
<table id="tabCores" width="300" border="0" bgcolor="#DCDCDC">
<tr>
<td width="70%" align="left">Azul</td>
<td width="30%" align="left"><input type="radio" name="optCor" value="#0000FF"></td>
</tr>
<tr>
<td width="70%" align="left">Amarelo</td>
<td width="30%" align="left"><input type="radio" name="optCor" value="#FFFF00"></td>
</tr>
<tr>
<td width="70%" align="left">Verde</td>
<td width="30%" align="left"><input type="radio" name="optCor" checked value="#00FF00"></td>
</tr>
<tr>
<td width="70%" align="left">Vermelho</td>
<td width="30%" align="left"><input type="radio" name="optCor" value="#FF0000"></td>
</tr>
</table>
</fieldset>
<p><input type="text" name="txtTeste" value="Texto xx x x x x x x " style="color:white; background-color=black;">
<p><input type="button" name="btnTeste" value="Texto xx x x x x x x " style="color:white; background-color=black;">
</body>
</html>
------
[]´s
VILMARBR