~
Advanced Hosters -

sydoow
V.I.P.
: 29.06.2007
: 8215
# : 27, 2009 8:32 am
:
, () . . "" .
, HTML Smile

Ronald Wild
V.I.P.
: 29.09.2006
: 1959
# : 27, 2009 12:59 pm
.. , , ?

sydoow
V.I.P.
: 29.06.2007
: 8215
# : 27, 2009 1:44 pm
, Smile
-, , . .

Ronald Wild
V.I.P.
: 29.09.2006
: 1959
# : 27, 2009 1:50 pm
, , :
:

<html>
<body>
<SCRIPT type=text/javascript>
calc = function ()
{
document.getElementById('s1').innerHTML=
 document.getElementById('q1').value*document.getElementById('p1').innerHTML;
document.getElementById('s2').innerHTML=
 document.getElementById('q2').value*document.getElementById('p2').innerHTML;
}
</SCRIPT>
<table border=1>
<tr>
<td></td><td></td><td>-</td><td></td>
</tr>
<tr>
<td>1</td>
<td id=p1>5</td>
<td>
<input type="text" id=q1 style="width: 50px;">
</td>
<td id=s1>&nbsp;
</td>
</tr>
<tr>
<td>2</td>
<td id=p2>10</td>
<td>
<input type="text" id=q2 style="width: 50px;">
</td>
<td id=s2>&nbsp;
</td>
</tr>
</table>
<input type="submit" onClick="return calc();" value="">
</body>
</html>


sydoow
V.I.P.
: 29.06.2007
: 8215
# : 28, 2009 4:21 am
Ronald Wild, Smile .
, Sad
, , "NaN" .

greendrug
: 08.07.2007
: 595
# : 28, 2009 10:23 am
sydoow, , : http://www.web.vkstoi.ru/posmotret.html

Ronald Wild
V.I.P.
: 29.09.2006
: 1959
# : 28, 2009 11:55 am
sydoow, ,
:
document.getEl
ementById('p1').innerHTML;

:
document.getEl
ementById('p2').innerHTML;

, .


:

<html>
<body>
<SCRIPT type=text/javascript>
calc = function ()
{
var sum1=document.getElementById('s1').innerHTML=
document.getElementById('q1').value*
document.getElementById('p1').innerHTML;

var sum2=document.getElementById('s2').innerHTML=
document.getElementById('q2').value*
document.getElementById('p2').innerHTML;

document.getElementById('sum').innerHTML= sum1+sum2;
}
</SCRIPT>
<table border=1>
<tr>
<td></td><td></td><td>
-</td><td></td>
</tr>
<tr>
<td>1</td>
<td id=p1>5</td>
<td>
<input type="text" id=q1 style="width: 50px;">
</td>
<td id=s1>&nbsp;
</td>
</tr>
<tr>
<td>2</td>
<td id=p2>10</td>
<td>
<input type="text" id=q2 style="width: 50px;">
</td>
<td id=s2>&nbsp;
</td>
</tr>

<tr>
<td colspan=3>
:
</td>
<td id=sum>&nbsp;</td>
</tr>
</table>
<input type="submit" onClick="return calc();" value="">
</body>
</html>
 



.

sydoow
V.I.P.
: 29.06.2007
: 8215
# : 30, 2009 4:46 am
Ronald Wild, :thup: Smile
    ~