links
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
links [2011/07/08 10:58] – [Andere] malcolm | links [2016/09/05 12:07] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
- | ===== würfelgenerator ===== | ||
- | < | ||
- | < | ||
- | <link rel=" | ||
- | <meta http-equiv=" | ||
- | <meta name=" | ||
- | <meta name=" | ||
- | <script type=" | ||
- | <!-- | ||
- | function gibdasaus(anzahl) { | ||
- | |||
- | var zahl = document.getElementById (" | ||
- | var zahl1 =parseInt(zahl); | ||
- | var a = 1 + (zahl1-1)*(Math.random()); | ||
- | a = Math.round(a); | ||
- | var b = 1 + (zahl1-1)*(Math.random()); | ||
- | b = Math.round(b); | ||
- | var c = 1 + (zahl1-1)*(Math.random()); | ||
- | c = Math.round(c); | ||
- | var d = 1 + (zahl1-1)*(Math.random()); | ||
- | d = Math.round(d); | ||
- | var e = 1 + (zahl1-1)*(Math.random()); | ||
- | e = Math.round(e); | ||
- | var f = 1 + (zahl1-1)*(Math.random()); | ||
- | f = Math.round(f); | ||
- | var g = 1 + (zahl1-1)*(Math.random()); | ||
- | g = Math.round(g); | ||
- | var h = 1 + (zahl1-1)*(Math.random()); | ||
- | h = Math.round(h); | ||
- | var i = 1 + (zahl1-1)*(Math.random()); | ||
- | i = Math.round(i); | ||
- | var j = 1 + (zahl1-1)*(Math.random()); | ||
- | j = Math.round(j); | ||
- | switch (anzahl) { | ||
- | case 1: alle = a; | ||
- | break; | ||
- | |||
- | case 2: alle = a+b; | ||
- | break; | ||
- | |||
- | case 3: alle = a+b+c; | ||
- | break; | ||
- | |||
- | case 4: alle = a+b+c+d; | ||
- | break; | ||
- | |||
- | case 5: alle = a+b+c+d+e; | ||
- | break; | ||
- | |||
- | case 6: alle = a+b+c+d+e+f; | ||
- | break; | ||
- | |||
- | case 7: alle = a+b+c+d+e+f+g; | ||
- | break; | ||
- | |||
- | case 8: alle = a+b+c+d+e+f+g+h; | ||
- | break; | ||
- | |||
- | case 9: alle = a+b+c+d+e+f+g+h+i; | ||
- | break; | ||
- | |||
- | case 10: alle = a+b+c+d+e+f+g+h+i+j; | ||
- | break; | ||
- | |||
- | default: document.write(" | ||
- | } | ||
- | |||
- | var xyz = document.getElementById (" | ||
- | xyz.innerHTML = alle;} | ||
- | //--> | ||
- | </ | ||
- | |||
- | </ | ||
- | < | ||
- | <div id=" | ||
- | <div style=" | ||
- | <p style=" | ||
- | |||
- | < | ||
- | <select id=" | ||
- | <option value=" | ||
- | <option value=" | ||
- | <option value=" | ||
- | <option value=" | ||
- | <option value=" | ||
- | <option value=" | ||
- | <option value=" | ||
- | |||
- | <option value=" | ||
- | <option value=" | ||
- | </ | ||
- | </ | ||
- | <input id=" | ||
- | <input id=" | ||
- | <input id=" | ||
- | <input id=" | ||
- | <input id=" | ||
- | <input id=" | ||
- | <input id=" | ||
- | <input id=" | ||
- | <input id=" | ||
- | <input id=" | ||
- | </p> | ||
- | </ | ||
- | <span id=" | ||
- | </ | ||
- | </ |
links.1310115489.txt.gz · Zuletzt geändert: 2016/09/05 12:07 (Externe Bearbeitung)