allexpietz
Hobbies
Meine Hobbies
<script language="JavaScript"> <br />
<!-- <br />
f...
<script language="JavaScript"> <br />
<!-- <br />
function Ergebnis() <br />
{ <br />
var x = 0; <br />
x = eval(window.document.Rechner.Display.value); <br />
window.document.Rechner.Display.value = x; <br />
} <br />
function Hinzufuegen(Zeichen) <br />
{ <br />
window.document.Rechner.Display.value = <br />
window.document.Rechner.Display.value + Zeichen; <br />
} <br />
function Sonderfunktion(Funktion) <br />
{ <br />
if(Funktion == "sqrt") <br />
{ <br />
var x = 0; <br />
x = eval(window.document.Rechner.Display.value); <br />
window.document.Rechner.Display.value = Math.sqrt(x); <br />
} <br />
if(Funktion == "pow") <br />
{ <br />
var x = 0; <br />
x = eval(window.document.Rechner.Display.value); <br />
window.document.Rechner.Display.value = x * x; <br />
} <br />
if(Funktion == "log") <br />
{ <br />
var x = 0; <br />
x = eval(window.document.Rechner.Display.value); <br />
window.document.Rechner.Display.value = Math.log(x); <br />
} <br />
} <br />
file://--> <br />
</script> <br />
<center> <br />
<h1>Rechner</h1> <br />
<form name="Rechner"> <br />
<div align="center"><table border="10" cellpadding="10" bgcolor="#C0C0C0"> <br />
<tr> <br />
<td bgcolor="#8C8C8C"><input type="text" size="30" <br />
maxlength="30" name="Display"></td> <br />
</tr> <br />
<tr> <br />
<td><table border="0"> <br />
<tr> <br />
<td width="50"><input type="button" <br />
value=" 7 " onclick="Hinzufuegen('7')"></td> <br />
<td width="50"><input type="button" <br />
value=" 8 " onclick="Hinzufuegen('8')"></td> <br />
<td width="70"><input type="button" <br />
value=" 9 " onclick="Hinzufuegen('9')"></td> <br />
<td width="50"><input type="button" <br />
value=" + " onclick="Hinzufuegen('+')"></td> <br />
</tr> <br />
<tr> <br />
<td width="50"><input type="button" <br />
value=" 4 " onclick="Hinzufuegen('4')"></td> <br />
<td width="50"><input type="button" <br />
value=" 5 " onclick="Hinzufuegen('5')"></td> <br />
<td width="70"><input type="button" <br />
value=" 6 " onclick="Hinzufuegen('6')"></td> <br />
<td width="50"><input type="button" <br />
value=" - " onclick="Hinzufuegen('-')"></td> <br />
</tr> <br />
<tr> <br />
<td width="50"><input type="button" <br />
value=" 1 " onclick="Hinzufuegen('1')"></td> <br />
<td width="50"><input type="button" <br />
value=" 2 " onclick="Hinzufuegen('2')"></td> <br />
<td width="70"><input type="button" <br />
value=" 3 " onclick="Hinzufuegen('3')"></td> <br />
<td width="50"><input type="button" <br />
value=" * " onclick="Hinzufuegen('*')"></td> <br />
</tr> <br />
<tr> <br />
<td width="50"><input type="button" <br />
value=" = " onclick="Ergebnis()"></td> <br />
<td width="50"><input type="button" <br />
value=" 0 " onclick="Hinzufuegen('0')"></td> <br />
<td width="70"><input type="button" <br />
value=" . " onclick="Hinzufuegen('.')"></td> <br />
<td width="50"><input type="button" <br />
value=" / " onclick="Hinzufuegen('/')"></td> <br />
</tr> <br />
<tr> <br />
<td width="50"><input type="button" <br />
value=" sqr " <br />
onclick="Sonderfunktion('sqrt')"></td> <br />
<td width="50"><input type="button" <br />
value=" ? " <br />
onclick="Sonderfunktion('pow')"></td> <br />
<td width="70"><input type="button" <br />
value=" log " <br />
onclick="Sonderfunktion('log')"></td> <br />
<td width="50"><input type="reset" <br />
value=" C "></td> <br />
</tr> <br />
</table> <br />
</td> <br />
</tr> <br />
</table> <br />
</center></div> <br />
</form>
Aktivitätsindex
1%
Letzter Login am 17.08.07