← Contents

  STUDY_html_016_E.html

<html>

<meta charset="utf-8">

<script>  すくりぷと- 1  </script>

<hr>

<script>  すくりぷと - 2  </script>

<br>
<input type="button"value="リロード"
onClick="window.location.reload();">

</html>
<script>
let 数字1=new Array("day_00.jpg","day_01.jpg","day_02.jpg","day_03.jpg",
"day_04.jpg","day_05.jpg","day_06.jpg","day_07.jpg","day_08.jpg","day_09.jpg");
let 選ぶ1=Math.floor((Math.random()*100))%数字1.length;
let 出力1="<img src="+数字1[選ぶ1]+">";
document.write(出力1);
let 数字2=new Array("day_00.jpg","day_01.jpg","day_02.jpg","day_03.jpg",
"day_04.jpg","day_05.jpg","day_06.jpg","day_07.jpg","day_08.jpg","day_09.jpg");
let 選ぶ2=Math.floor((Math.random()*100))%数字2.length;
let 出力2="<img src="+数字2[選ぶ2]+">";
document.write(出力2);
let 数字3=new Array("day_00.jpg","day_01.jpg","day_02.jpg","day_03.jpg",
"day_04.jpg","day_05.jpg","day_06.jpg","day_07.jpg","day_08.jpg","day_09.jpg");
let 選ぶ3=Math.floor((Math.random()*100))%数字3.length;
let 出力3="<img src="+数字3[選ぶ3]+">";
document.write(出力3);
</script>
<script>
let 答え1=new Array("0","1","2","3","4","5","6","7","8","9");
document.write(答え1[Math.floor(Math.random()*答え1.length)]);
let 答え2=new Array(" 0 "," 1 "," 2 "," 3 "," 4 "," 5 "," 6 "," 7 "," 8 "," 9 ");
document.write(答え2[Math.floor(Math.random()*答え2.length)]);
let 答え3=new Array("0","1","2","3","4","5","6","7","8","9");
document.write(答え3[Math.floor(Math.random()*答え3.length)]);
</script>

  sample_STUDY_html_016_E    サンプル・ダウンロード  

トップにもどるボタン