Code Falsch? | Bitte das Kästchen rausnehmen |
INSANITY

toujours pur.
 

Dabei seit: 05.02.2006
Beiträge: 7.144
Herkunft: Delmenhorst
 |
|
Code Falsch? | Bitte das Kästchen rausnehmen |
 |

Mein Code;
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html
lang="de"><head><input><title>Taschenrechner</title>
<meta name="description"
content="demotech - Mit uns kommen Sie schneller voran, Rechnen Sie selbst."><meta
name="author" content="Detlev.Molitor@deckname.de"><meta
name="keywords"
content="online, demotech, taschenrechner, unternehmensberater, touristik, start-up, ausrechnen, reisespezialist, hotel, fluggesellschaft, beherbergungsbetrieb, jugendherberge, mietwagen, tauchsportanbieter"><style
type="text/css"><!-- a:link { text-decoration:none; color:#FFFFFF; } a:visited { text-decoration:none; color:#0000FF; } a:hover { text-decoration:none; background-color:#FFFFFF; } a:active { text-decoration:none; font-weight:bold; background-color:#FF0000; } --></style><script
language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script><script type="text/javascript">
<!--
function Check(Eingabe) {
var nur_das ="0123456789[]()-+*%/";
for (var i = 0; i < Eingabe.length; i++)
if (nur_das.indexOf(Eingabe.charAt(i))<0 ) return false;
return true;
}
function Ergebnis() {
var x = 0;
if (Check(window.document.Rechner.Display.value))
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = x;
}
function Hinzufuegen(Zeichen) {
window.document.Rechner.Display.value =
window.document.Rechner.Display.value + Zeichen;
}
function Sonderfunktion(Funktion) {
if (Check(window.document.Rechner.Display.value)) {
if(Funktion == "sqrt") {
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = Math.sqrt(x);
}
if(Funktion == "pow") {
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = x * x;
}
if(Funktion == "log") {
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = Math.log(x);
}
} else window.document.Rechner.Display.value = 0
}
//-->
</script><style type="text/css">
<!--
.button { width:60px; text-align:center;
font-family:System,sans-serif;
font-size:100%; }
.display { width:100%; text-align:right;
font-family:System,sans-serif;
font-size:100%; }
-->
</style></head><body
style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);"><center><form
name="Rechner" action=""
onsubmit="Ergebnis();return false;"><table border="5"
cellpadding="10" cellspacing="0"><tbody><tr><td
bgcolor="#c0c0c0"><input name="Display"
class="display" align="right" type="text"></td></tr><tr><td
bgcolor="#e0e0e0"><table border="0" cellpadding="0"
cellspacing="2"><tbody><tr><td><input
class="button" value=" 7 " onclick="Hinzufuegen('7')"
type="button" width="60"></td><td><input
class="button" value=" 8 " onclick="Hinzufuegen('8')"
type="button" width="60"></td><td><input
class="button" value=" 9 " onclick="Hinzufuegen('9')"
type="button" width="60"></td><td><input
class="button" value=" + " onclick="Hinzufuegen('+')"
type="button" width="60"></td></tr><tr><td><input
class="button" value=" 4 " onclick="Hinzufuegen('4')"
type="button" width="60"></td><td><input
class="button" value=" 5 " onclick="Hinzufuegen('5')"
type="button" width="60"></td><td><input
class="button" value=" 6 " onclick="Hinzufuegen('6')"
type="button" width="60"></td><td><input
class="button" value=" - " onclick="Hinzufuegen('-')"
type="button" width="60"></td></tr><tr><td><input
class="button" value=" 1 " onclick="Hinzufuegen('1')"
type="button" width="60"></td><td><input
class="button" value=" 2 " onclick="Hinzufuegen('2')"
type="button" width="60"></td><td><input
class="button" value=" 3 " onclick="Hinzufuegen('3')"
type="button" width="60"></td><td><input
class="button" value=" * " onclick="Hinzufuegen('*')"
type="button" width="60"></td></tr><tr><td><input
class="button" value=" = " onclick="Ergebnis()"
type="button" width="60"></td><td><input
class="button" value=" 0 " onclick="Hinzufuegen('0')"
type="button" width="60"></td><td><input
class="button" value=" . " onclick="Hinzufuegen('.')"
type="button" width="60"></td><td><input
class="button" value=" / " onclick="Hinzufuegen('/')"
type="button" width="60"></td></tr><tr><td><input
class="button" value="sqrt "
onclick="Sonderfunktion('sqrt')" type="button" width="60"></td><td><input
class="button" value=" pow "
onclick="Sonderfunktion('pow')" type="button" width="60"></td><td><input
class="button" value=" log "
onclick="Sonderfunktion('log')" type="button" width="60"></td><td><input
class="button" value=" C " type="reset" width="60"></td></tr><tr><th
colspan="4"><a href="http://www.ab-travel.net"><br></a></th></tr></tbody></table></td></tr></tbody></table></form></center></body></html>
|
|
__________________
i will never let you fall. i'll stand up with you forever.
|
|
24.09.2006 16:30 |
|
|
INSANITY

toujours pur.
 

Dabei seit: 05.02.2006
Beiträge: 7.144
Herkunft: Delmenhorst
Themenstarter
 |
|
Wichtig!!
__________________
i will never let you fall. i'll stand up with you forever.
|
|
24.09.2006 19:52 |
|
|
INSANITY

toujours pur.
 

Dabei seit: 05.02.2006
Beiträge: 7.144
Herkunft: Delmenhorst
Themenstarter
 |
|
__________________
i will never let you fall. i'll stand up with you forever.
|
|
27.09.2006 22:50 |
|
|
Lauri

herzchenaugen()
 

Dabei seit: 21.05.2005
Beiträge: 5.603
Herkunft: Essen Name: Laura
 |
|
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
|
<html>
<head><title>Taschenrechner</title>
<meta name="description"
content="demotech - Mit uns kommen Sie schneller voran, Rechnen Sie selbst."><meta
name="author" content="Detlev.Molitor@deckname.de"><meta
name="keywords"
content="online, demotech, taschenrechner, unternehmensberater, touristik, start-up, ausrechnen, reisespezialist, hotel, fluggesellschaft, beherbergungsbetrieb, jugendherberge, mietwagen, tauchsportanbieter"><style
type="text/css"><!-- a:link { text-decoration:none; color:#FFFFFF; } a:visited { text-decoration:none; color:#0000FF; } a:hover { text-decoration:none; background-color:#FFFFFF; } a:active { text-decoration:none; font-weight:bold; background-color:#FF0000; } --></style><script
language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script><script type="text/javascript">
<!--
function Check(Eingabe) {
var nur_das ="0123456789[]()-+*%/";
for (var i = 0; i < Eingabe.length; i++)
if (nur_das.indexOf(Eingabe.charAt(i))<0 ) return false;
return true;
}
function Ergebnis() {
var x = 0;
if (Check(window.document.Rechner.Display.value))
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = x;
}
function Hinzufuegen(Zeichen) {
window.document.Rechner.Display.value =
window.document.Rechner.Display.value + Zeichen;
}
function Sonderfunktion(Funktion) {
if (Check(window.document.Rechner.Display.value)) {
if(Funktion == "sqrt") {
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = Math.sqrt(x);
}
if(Funktion == "pow") {
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = x * x;
}
if(Funktion == "log") {
var x = 0;
x = eval(window.document.Rechner.Display.value);
window.document.Rechner.Display.value = Math.log(x);
}
} else window.document.Rechner.Display.value = 0
}
//-->
</script><style type="text/css">
<!--
.button { width:60px; text-align:center;
font-family:System,sans-serif;
font-size:100%; }
.display { width:100%; text-align:right;
font-family:System,sans-serif;
font-size:100%; }
-->
</style></head><body
style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);"><center><form
name="Rechner" action=""
onsubmit="Ergebnis();return false;"><table border="5"
cellpadding="10" cellspacing="0"><tbody><tr><td
bgcolor="#c0c0c0"><input name="Display"
class="display" align="right" type="text"></td></tr><tr><td
bgcolor="#e0e0e0"><table border="0" cellpadding="0"
cellspacing="2"><tbody><tr><td><input
class="button" value=" 7 " onclick="Hinzufuegen('7')"
type="button" width="60"></td><td><input
class="button" value=" 8 " onclick="Hinzufuegen('8')"
type="button" width="60"></td><td><input
class="button" value=" 9 " onclick="Hinzufuegen('9')"
type="button" width="60"></td><td><input
class="button" value=" + " onclick="Hinzufuegen('+')"
type="button" width="60"></td></tr><tr><td><input
class="button" value=" 4 " onclick="Hinzufuegen('4')"
type="button" width="60"></td><td><input
class="button" value=" 5 " onclick="Hinzufuegen('5')"
type="button" width="60"></td><td><input
class="button" value=" 6 " onclick="Hinzufuegen('6')"
type="button" width="60"></td><td><input
class="button" value=" - " onclick="Hinzufuegen('-')"
type="button" width="60"></td></tr><tr><td><input
class="button" value=" 1 " onclick="Hinzufuegen('1')"
type="button" width="60"></td><td><input
class="button" value=" 2 " onclick="Hinzufuegen('2')"
type="button" width="60"></td><td><input
class="button" value=" 3 " onclick="Hinzufuegen('3')"
type="button" width="60"></td><td><input
class="button" value=" * " onclick="Hinzufuegen('*')"
type="button" width="60"></td></tr><tr><td><input
class="button" value=" = " onclick="Ergebnis()"
type="button" width="60"></td><td><input
class="button" value=" 0 " onclick="Hinzufuegen('0')"
type="button" width="60"></td><td><input
class="button" value=" . " onclick="Hinzufuegen('.')"
type="button" width="60"></td><td><input
class="button" value=" / " onclick="Hinzufuegen('/')"
type="button" width="60"></td></tr><tr><td><input
class="button" value="sqrt "
onclick="Sonderfunktion('sqrt')" type="button" width="60"></td><td><input
class="button" value=" pow "
onclick="Sonderfunktion('pow')" type="button" width="60"></td><td><input
class="button" value=" log "
onclick="Sonderfunktion('log')" type="button" width="60"></td><td><input
class="button" value=" C " type="reset" width="60"></td></tr><tr><th
colspan="4"><a href="http://www.ab-travel.net"><br></a></th></tr></tbody></table></td></tr></tbody></table></form></center></body></html>
|
|
so vielleicht?
__________________
Holzhacken ist deshalb so beliebt, weil man bei dieser Tätigkeit den Erfolg sofort sieht.
Albert Einstein.
|
|
27.09.2006 23:06 |
|
|
INSANITY

toujours pur.
 

Dabei seit: 05.02.2006
Beiträge: 7.144
Herkunft: Delmenhorst
Themenstarter
 |
|
Super!! Dankeschön +knuffz+
__________________
i will never let you fall. i'll stand up with you forever.
|
|
28.09.2006 14:03 |
|
|
|
Impressum
|