回答編集履歴
3
編集
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
month = hiduke.getMonth()+1;
|
20
20
|
|
21
|
-
banner.src="
|
21
|
+
banner.src=""+image[month]+".jpg";//月ごとの画像の表示
|
22
22
|
|
23
23
|
link_a.href=link_to[month];//月ごとのリンク先の設定
|
24
24
|
|
2
編集
test
CHANGED
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
<img src="" id="banner">
|
6
|
-
|
7
|
-
<a href="" id="link_a">
|
5
|
+
<a href="" id="link_a"><img src="" id="banner"></a>
|
8
6
|
|
9
7
|
|
10
8
|
|
1
編集
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<script>
|
12
12
|
|
13
|
-
const image =[
|
13
|
+
const image =["1","2","3","4","5","6","7","8","9","10","11","12"];//月ごとの画像を連番で用意
|
14
14
|
|
15
15
|
const link_to =["https://yahoo.co.jp/","https://google.com/","URL","URL","URL","URL","URL","URL","URL","URL","URL","URL"];//月ごとのリンク先
|
16
16
|
|