�����:   ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½:




�������
��������
�����
�����


Java
- �������
- ������-�����
- ������
- �������
- �����������
- ������
- IDE
- ������� ��������
- �������

��������� Java
- ����
- �������
- ������
- WAP, WML � ��.

JavaScript
- ������-�����
- �������
- ������

���-���������
- HTML
- CSS
- SSI

�������� ��� ���
�������
�����
������
���������
���� :)




Rambler's Top100

JavaScript: ������������������� �������� �������� value ���� ���������� radio � checkbox � ����� �� �����

������������ �������� �������� value ���� ���������� radio � checkbox � ����� �� �����

text 1 text 2 text 3 text 4 text 5

text 6
text 7
text 8
text 9
text 10
text 11
text 12
text 13
text 14
text 15

text 16 text 17 text 18


�����:

<html;>
<head;>
<script; language="JavaScript">
<!--
function sums()
{
 sum=0;
 for(i=1;i<19;i++)
 { 
  var elem=document.getElementById("r"+i);
  if(elem.checked)sum=sum+parseInt(elem.value);
 }
 document.formText.sumOut.value=sum;
}
//-->
</script>
</head>
<body;>
<form; name="formText">
<input; type="radio" name="aa" id="r1" value="1">text; 1
<input; type="radio" name="aa" id="r2" value="2">text; 2
<input; type="radio" name="aa" id="r3" value="3">text; 3
<input; type="radio" name="aa" id="r4" value="4">text; 4
<input; type="radio" name="aa" id="r5" value="5">text; 5<BR;><BR;>
<input; type="checkbox" id="r6" value="6">text; 6<BR;>
<input; type="checkbox" id="r7" value="7">text; 7<BR;>
<input; type="checkbox" id="r8" value="8">text; 8<BR;>
<input; type="checkbox" id="r9" value="9">text; 9<BR;>
<input; type="checkbox" id="r10" value="10">text; 10<BR;>
<input; type="checkbox" id="r11" value="11">text; 11<BR;>
<input; type="checkbox" id="r12" value="12">text; 12<BR;>
<input; type="checkbox" id="r13" value="13">text; 13<BR;>
<input; type="checkbox" id="r14" value="14">text; 14<BR;>
<input; type="checkbox" id="r15" value="15">text; 15<BR;><BR;>
<input; type="radio" name="bb" id="r16" value="+16">text; 16
<input; type="radio" name="bb" id="r17" value="+17">text; 17
<input; type="radio" name="bb" id="r18" value="+18">text; 18<BR;><BR;>
<input; type="button" onclick="sums()" value="����������">
<br;>�����:<br;>
<input; type="text" name="sumOut" disabled="false" value="">
</form>
</body>
</html>


����� ��������
"Java � ��������. ����������"
���������>>
��������>>


���� �����
"������� �������������� � JAVA. ������� ���������� �������� ��������������, ������������������� ��� ������ UML"
���������>>
��������>>

����� � ��� �� �� ����� ���� ������ ������� ���.


[an error occurred while processing this directive]



Apache Struts 2.0.11
Apache MyFaces Trinidad Core 1.2.3.
Sun ��������� ��������� ���������� � Java ME �� Java SE
��������� �����!