てすと


※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

  1. <html>
  2. <head>
  3. <title>石造りの塔</title>
  4. <script type="text/javascript">
  5. <!--
  6.  
  7. TowerFloor = function(Step){
  8. if(isNaN(Step)||parseFloat(Step)<1){alert("不適切な値です。");return;}
  9. TowerStep = parseFloat(Step);
  10. Monster();
  11. }
  12.  
  13. Monster = function(){
  14. if(!document.getElementById) return;
  15.  
  16. /*■石造りの塔■*/
  17. var NAALevel = Math.round(TowerStep);
  18. var NAAAttack = Math.round(TowerStep+3);
  19. var NAAEXP = Math.round(TowerStep+1);
  20. var NAAGilu = Math.round(TowerStep*2);
  21. var NAAHitPoint = Math.round(TowerStep*3+20); //近似値
  22. var obj1 = document.getElementById("NAALevel");
  23. var obj2 = document.getElementById("NAAAttack");
  24. var obj3 = document.getElementById("NAAEXP");
  25. var obj4 = document.getElementById("NAAGilu");
  26. var obj5 = document.getElementById("NAAHitPoint");
  27. obj1.innerHTML = NAALevel;
  28. obj2.innerHTML = NAAAttack;
  29. obj3.innerHTML = NAAEXP;
  30. obj4.innerHTML = NAAGilu;
  31. obj5.innerHTML = NAAHitPoint;
  32.  
  33. var NABLevel = Math.round(TowerStep+2);
  34. var NABAttack = Math.round(TowerStep+7);
  35. var NABEXP = Math.round(TowerStep+3);
  36. var NABGilu = Math.round(TowerStep*2);
  37. var NABHitPoint = Math.round(TowerStep*3+20); //近似値
  38. var obj1 = document.getElementById("NABLevel");
  39. var obj2 = document.getElementById("NABAttack");
  40. var obj3 = document.getElementById("NABEXP");
  41. var obj4 = document.getElementById("NABGilu");
  42. var obj5 = document.getElementById("NABHitPoint");
  43. obj1.innerHTML = NABLevel;
  44. obj2.innerHTML = NABAttack;
  45. obj3.innerHTML = NABEXP;
  46. obj4.innerHTML = NABGilu;
  47. obj5.innerHTML = NABHitPoint;
  48.  
  49. var NACLevel = Math.round(TowerStep+4);
  50. var NACAttack = Math.round(TowerStep+10);
  51. var NACEXP = Math.round(TowerStep+4);
  52. var NACGilu = Math.round(TowerStep*2);
  53. var NACHitPoint = Math.round(TowerStep*10+20); //近似値
  54. var obj1 = document.getElementById("NACLevel");
  55. var obj2 = document.getElementById("NACAttack");
  56. var obj3 = document.getElementById("NACEXP");
  57. var obj4 = document.getElementById("NACGilu");
  58. var obj5 = document.getElementById("NACHitPoint");
  59. obj1.innerHTML = NACLevel;
  60. obj2.innerHTML = NACAttack;
  61. obj3.innerHTML = NACEXP;
  62. obj4.innerHTML = NACGilu;
  63. obj5.innerHTML = NACHitPoint;
  64.  
  65. var NADLevel = Math.round(TowerStep);
  66. var NADAttack = Math.round(TowerStep+8);
  67. var NADEXP = Math.round(TowerStep*2+23);
  68. var NADGilu = Math.round(TowerStep*5-2);
  69. var NADHitPoint = Math.round(TowerStep*20+80); //近似値
  70. var obj1 = document.getElementById("NADLevel");
  71. var obj2 = document.getElementById("NADAttack");
  72. var obj3 = document.getElementById("NADEXP");
  73. var obj4 = document.getElementById("NADGilu");
  74. var obj5 = document.getElementById("NADHitPoint");
  75. obj1.innerHTML = NADLevel;
  76. obj2.innerHTML = NADAttack;
  77. obj3.innerHTML = NADEXP;
  78. obj4.innerHTML = NADGilu;
  79. obj5.innerHTML = NADHitPoint;
  80.  
  81. }
  82.  
  83. // -->
  84. </script>
  85.  
  86. <style type="text/css">
  87. <!--
  88. th{color:#660000;font-size:12pt;}
  89. td{font-size:10pt;}
  90. td.col2{width:180px;height:15px;font-size:10pt;}
  91. input{width:88px;background:#99ffff;text-align:right;}
  92. .in{background:#99ffff;}
  93. .out{width:45px;height:15px;background:#99ff99;text-align:right;}
  94. a:link,a:visit{color:gray;}
  95. #kani{width:45px;height:15px;background:#99ff99;text-align:right;}
  96. -->
  97. </style>
  98.  
  99. </head>
  100. <body>
  101.  
  102. <table border="1">
  103. <tbody>
  104. <tr>
  105. <td>塔の階数</td>
  106. <td><input onchange="TowerFloor(this.value)" type="text" value=""></td>
  107. </tr>
  108. </tbody>
  109. </table>
  110.  
  111.  
  112. <table border="1">
  113. <tbody>
  114.  
  115. <tr>
  116. <th>Lv1~ 石造りの塔</th><td>レベル</td><td>攻撃力</td><td>経験値</td><td>ギル</td><td>HP</td><td>BP</td></tr>
  117. <tr>
  118. <td>バット◇火</td>
  119. <td class="out" id="NAALevel"></td>
  120. <td class="out" id="NAAAttack"></td>
  121. <td class="out" id="NAAEXP"></td>
  122. <td class="out" id="NAAGilu"></td>
  123. <td class="out" id="NAAHitPoint"></td>
  124. <td id="kani">1</td>
  125. </tr>
  126. <tr>
  127. <td>バット◇火</td>
  128. <td class="out" id="NABLevel"></td>
  129. <td class="out" id="NABAttack"></td>
  130. <td class="out" id="NABEXP"></td>
  131. <td class="out" id="NABGilu"></td>
  132. <td class="out" id="NABHitPoint"></td>
  133. <td id="kani">1</td>
  134. </tr>
  135. <tr>
  136. <td>バット◇火</td>
  137. <td class="out" id="NACLevel"></td>
  138. <td class="out" id="NACAttack"></td>
  139. <td class="out" id="NACEXP"></td>
  140. <td class="out" id="NACGilu"></td>
  141. <td class="out" id="NACHitPoint"></td>
  142. <td id="kani">2</td>
  143. </tr>
  144. <tr>
  145. <td>ボスゴブリン◇雷</td>
  146. <td class="out" id="NADLevel"></td>
  147. <td class="out" id="NADAttack"></td>
  148. <td class="out" id="NADEXP"></td>
  149. <td class="out" id="NADGilu"></td>
  150. <td class="out" id="NADHitPoint"></td>
  151. <td id="kani">5</td>
  152. </tr>
  153. </tbody>
  154. </table>
  155.  
  156.  
  157. </body>
  158. </html>
  159.  
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。